https://github.com/juanrgon/terminology
An intuitive way to color terminal text with python
https://github.com/juanrgon/terminology
ansi ansi-colors cli cli-app color colorama colorization colors package python terminal terminal-based terminal-colors terminal-graphics textui
Last synced: 5 months ago
JSON representation
An intuitive way to color terminal text with python
- Host: GitHub
- URL: https://github.com/juanrgon/terminology
- Owner: juanrgon
- License: mit
- Created: 2019-05-11T21:56:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-02T15:22:28.000Z (over 3 years ago)
- Last Synced: 2025-10-27T16:57:13.681Z (8 months ago)
- Topics: ansi, ansi-colors, cli, cli-app, color, colorama, colorization, colors, package, python, terminal, terminal-based, terminal-colors, terminal-graphics, textui
- Language: Python
- Homepage:
- Size: 167 KB
- Stars: 18
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terminology
[](https://travis-ci.org/juanrgon/terminology)
A simple way to color terminal text! ❤️ 💛 💚 💙 💜
## Color Text
```python
from terminology import in_red, in_yellow, in_green, in_blue, in_magenta
print(in_red("it's"), in_yellow("a"), in_green("double"), in_blue("rainbow"), in_magenta("dude..."))
```
_Output_
![alt text][coloring]
[coloring]: https://raw.githubusercontent.com/juanrgon/terminology/master/docs/_static/pics/coloring.png
"Coloring"
## Color Text Background
```python
from terminology import on_green, on_yellow, on_red
print(on_green("OK"), on_yellow("WARNING"), on_red("DANGER")
```
_Output_
![alt text][background colors]
[background colors]: https://raw.githubusercontent.com/juanrgon/terminology/master/docs/_static/pics/background.png
"Background Colors"
## Emphasize Text with Bold and Underlining
```python
from terminology import in_bold, underlined
print(in_bold("Chapter 1"))
print("- ", underlined("Section i"))
print("- ", underlined("Section ii"), "\n")
print(in_bold("Chapter 2"))
print("- ", underlined("Section i"), '\n')
```
_Output_
![alt text][bold and underline]
[bold and underline]: https://raw.githubusercontent.com/juanrgon/terminology/master/docs/_static/pics/bold_and_underline.png
"Bold and Underline"