Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gatomod/uncolor
🎨 | Uncomplicated Python terminal colorizing tool
https://github.com/gatomod/uncolor
Last synced: about 1 month ago
JSON representation
🎨 | Uncomplicated Python terminal colorizing tool
- Host: GitHub
- URL: https://github.com/gatomod/uncolor
- Owner: gatomod
- License: mit
- Created: 2022-05-24T16:40:39.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-29T18:45:03.000Z (over 1 year ago)
- Last Synced: 2024-11-19T14:56:12.987Z (about 1 month ago)
- Language: Python
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Uncolor
## 🎨 | Uncomplicated colorizing tool for your terminalInspired on the Node's package *Chalk*, Uncolor wants to make easier styles for the terminal. No reset needed, no aditional functions, just simple.
### Why a new style package?
I made this package for have a style formatter different to Colorama, easy to use and uncomplicated. I also created it for learn modules in Python, so this is my first package. I'm proud of it :)### Installation
**Note:** *Uncolor requires* **Python 3.10** *or higher*
```sh
pip install colorizing-tool-uncolor
```### Usage
Uncolor only has one function
```py
import uncolormy_colorful_string = uncolor("This is really awesome!", ["red", "blueBg", "bold"])
print(my_colorful_string)
```The styles that you want goes into the array. Uncolor supports the next styles:
| Text color | Background color | Style |
|--|--|---|
| `white` `black` `green` `yellow` `brown` `blue` `cyan` `purple` `red` | `whiteBg` `blackBg` `greenBg` `yellowBg` `brownBg` `blueBg` `cyanBg` `purpleBg` `redBg` | `bold` `italic` `underline` `blink` `inverse` `hidden` `crossed` |
| `lightgray` `darkgray` `lightgreen` `lightblue` `lightred` `lightpurple` `lightcyan` | `lightgrayBg` `darkgrayBg` `lightgreenBg` `lightblueBg` `lightredBg` `lightpurpleBg` `lightcyanBg` | `end` or `reset` (no needed except if you want) |### License
Uncolor is under MIT license. You can feel free to use, read, copy and edit the code ;)