METADATA 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. Metadata-Version: 2.1
  2. Name: termcolor
  3. Version: 1.1.0
  4. Summary: ANSII Color formatting for output in terminal.
  5. Home-page: http://pypi.python.org/pypi/termcolor
  6. Author: Konstantin Lepa
  7. Author-email: konstantin.lepa@gmail.com
  8. License: MIT
  9. Platform: UNKNOWN
  10. Classifier: Development Status :: 5 - Production/Stable
  11. Classifier: Environment :: Console
  12. Classifier: Intended Audience :: Developers
  13. Classifier: License :: OSI Approved :: MIT License
  14. Classifier: Operating System :: OS Independent
  15. Classifier: Programming Language :: Python
  16. Classifier: Topic :: Terminals
  17. License-File: COPYING.txt
  18. Example
  19. =======
  20. ::
  21. import sys
  22. from termcolor import colored, cprint
  23. text = colored('Hello, World!', 'red', attrs=['reverse', 'blink'])
  24. print(text)
  25. cprint('Hello, World!', 'green', 'on_red')
  26. print_red_on_cyan = lambda x: cprint(x, 'red', 'on_cyan')
  27. print_red_on_cyan('Hello, World!')
  28. print_red_on_cyan('Hello, Universe!')
  29. for i in range(10):
  30. cprint(i, 'magenta', end=' ')
  31. cprint("Attention!", 'red', attrs=['bold'], file=sys.stderr)
  32. Text Properties
  33. ===============
  34. Text colors:
  35. - grey
  36. - red
  37. - green
  38. - yellow
  39. - blue
  40. - magenta
  41. - cyan
  42. - white
  43. Text highlights:
  44. - on_grey
  45. - on_red
  46. - on_green
  47. - on_yellow
  48. - on_blue
  49. - on_magenta
  50. - on_cyan
  51. - on_white
  52. Attributes:
  53. - bold
  54. - dark
  55. - underline
  56. - blink
  57. - reverse
  58. - concealed
  59. Terminal properties
  60. ===================
  61. ============ ======= ==== ========= ========== ======= =========
  62. Terminal bold dark underline blink reverse concealed
  63. ------------ ------- ---- --------- ---------- ------- ---------
  64. xterm yes no yes bold yes yes
  65. linux yes yes bold yes yes no
  66. rxvt yes no yes bold/black yes no
  67. dtterm yes yes yes reverse yes yes
  68. teraterm reverse no yes rev/red yes no
  69. aixterm normal no yes no yes yes
  70. PuTTY color no yes no yes no
  71. Windows no no no no yes no
  72. Cygwin SSH yes no color color color yes
  73. Mac Terminal yes no yes yes yes yes
  74. ============ ======= ==== ========= ========== ======= =========
  75. CHANGES
  76. =======
  77. 1.1.0 (13.01.2011)
  78. ------------------
  79. - Added cprint function.
  80. 1.0.1 (13.01.2011)
  81. ------------------
  82. - Updated README.rst.
  83. 1.0.0 (13.01.2011)
  84. ------------------
  85. - Changed license to MIT.
  86. - Updated copyright.
  87. - Refactored source code.
  88. 0.2 (07.09.2010)
  89. ----------------
  90. - Added support of Python 3.x.
  91. 0.1.2 (04.06.2009)
  92. ------------------
  93. - Fixed bold characters. (Thanks Tibor Fekete)
  94. 0.1.1 (05.03.2009)
  95. ------------------
  96. - Some refactoring.
  97. - Updated copyright.
  98. - Fixed reset colors.
  99. - Updated documentation.
  100. 0.1 (09.06.2008)
  101. ----------------
  102. - Initial release.