Rocking terminal colours. Just like in the 80s. 🏳️🌈🤘🏽🎸
A python library for playing with colourful string representations using ANSI escape sequences.
pip install https://github.com/astromancer/motley
>>> motley.format('This text is {:|g}!'.format('green')
>>> motley.format('{:{:|g} {:|bB_}!<13}'.format('Hello', 'World')
>>> motley.green_on_white(':)')
The test suite
contains further examples of how
motley
can be used. Testing is done with pytest
:
pytest motley
Contributions are welcome!
- Fork it!
- Create your feature branch
git checkout -b feature/rad
- Commit your changes
git commit -am 'Add some cool feature 😎'
- Push to the branch
git push origin feature/rad
- Create a new Pull Request
- e-mail: [email protected]
- see LICENSE