PKG-INFO~20171216-075228 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Metadata-Version: 1.1
  2. Name: ansicolors
  3. Version: 1.0.2
  4. Summary: ANSI colors for Python
  5. Home-page: http://github.com/verigak/colors/
  6. Author: Giorgos Verigakis
  7. Author-email: verigak@gmail.com
  8. License: ISC
  9. Description: ANSI colors for Python
  10. ======================
  11. A simple module to add ANSI colors and decorations to your strings.
  12. Install
  13. --------
  14. python set_up.py install
  15. Example Usage
  16. -------------
  17. You can choose one of the 8 basic ANSI colors: black, red, green, yellow, blue,
  18. magenta, cyan, white.
  19. ::
  20. from colors import red, green, blue
  21. print red('This is red')
  22. print green('This is green')
  23. print blue('This is blue')
  24. Optionally you can specify a background color.
  25. ::
  26. print red('red on blue', bg='blue')
  27. print green('green on black', bg='black')
  28. You can additionally specify one of the supported styles: bold, faint, italic,
  29. underline, blink, blink2, negative, concealed, crossed. Not all styles are
  30. supported by all terminals.
  31. ::
  32. from colors import bold, underline
  33. print bold('This is bold')
  34. print underline('underline red on blue', fg='red', bg='blue')
  35. print green('bold green on black', bg='black', style='bold')
  36. You can also use more than one styles at once.
  37. ::
  38. print red('This is very important', style='bold+underline')
  39. xterm-256 colors are supported as well, to use them give an integer instead of
  40. a color name.
  41. ::
  42. from colors import color
  43. for i in range(256):
  44. print color('Color #%d' % i, fg=i)
  45. License
  46. -------
  47. colors is licensed under the ISC license.
  48. Platform: UNKNOWN
  49. Classifier: Environment :: Console
  50. Classifier: Intended Audience :: Developers
  51. Classifier: License :: OSI Approved :: ISC License (ISCL)
  52. Classifier: Programming Language :: Python :: 2.6
  53. Classifier: Programming Language :: Python :: 2.7
  54. Classifier: Programming Language :: Python :: 3