https://github.com/nullarray/chromascope
Pseudo library for python, provides custom colored text formatting in a convenient way.
https://github.com/nullarray/chromascope
ansi cli colore lib output pseudocode
Last synced: 9 months ago
JSON representation
Pseudo library for python, provides custom colored text formatting in a convenient way.
- Host: GitHub
- URL: https://github.com/nullarray/chromascope
- Owner: NullArray
- License: gpl-3.0
- Created: 2019-01-11T04:49:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-15T09:42:07.000Z (almost 7 years ago)
- Last Synced: 2025-03-26T18:21:31.012Z (9 months ago)
- Topics: ansi, cli, colore, lib, output, pseudocode
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ChromaScope
Pseudo library for python, provides custom colored formatting in a convenient way through the use of ANSI codes.
### Why?
Basically, i was tired of using Blessings and related libs, nothing personal towards the authors of those libs. However i wanted something a bit simpler and a bit more portable. So i decided to write this. I wrote it so that it can easily be expanded upon. And since it's more of a pseudo lib, you can just copy and paste this script into a project where you wish to use colored text and symbols for your terminal output.
Whether you import the script as a library or not, it is very easy to use.
```
# As library
from chroma import text
print text('green',"This line will now be printed green")
```
If you simply copy the script to your main python file all you need to do is invoke the function with
`print text('color','message')`
### Note
Should you have any questions with regards to the contents of this repo please feel free to open a ticket.