Sometimes, it's desirable to have bold text without specifying color (to be consistent with different backgrounds). At the moment, it seems like there isn't any way to do this with crayons, and a crayons.bold function should be easy to add. Another advantage is to allow chaining bold/color calls. For example,
if condition_1:
msg = crayons.red(msg)
if condition_2:
msg = crayons.bold(msg)
It should be a very simple function to add, and I'd be happy to make a pull request.
Sometimes, it's desirable to have bold text without specifying color (to be consistent with different backgrounds). At the moment, it seems like there isn't any way to do this with
crayons
, and acrayons.bold
function should be easy to add. Another advantage is to allow chaining bold/color calls. For example,It should be a very simple function to add, and I'd be happy to make a pull request.