kennethreitz / crayons

Text UI colors for Python.
https://pypi.python.org/pypi/crayons
MIT License
424 stars 30 forks source link

Add random() to select a color at random #14

Closed azillion closed 5 years ago

azillion commented 6 years ago

Usage example

>>> import crayons
>>> print(crayons.random('random string'))
random string
>>> colors = ['blue', 'cyan', 'magenta']
>>> print(crayons.random('random string', colors=colors))
random string
kennethreitz commented 5 years ago

update?

azillion commented 5 years ago

Will do!

MasterOdin commented 5 years ago

Merged in e8774526bdf0ef6f9d21ea569ceabc5d209f2240. Thanks for the PR!