A simple package make life easier when working with text from the CLI.
Project description
Manychrome
This is a package predominantly created for those who prefer working from the CLI. It is to add colours and to style text so to easily make warnings, notification messages, or finding text when searching for it easily pop out.
Installation
pip install manychrome
To uninstall use: pip uninstall manychrome
Usage
import manychrome
Classes to import
- Colorful()
- Styleish()
- FindMe()
Colorful()
See below for the current functions and config for class Colorful()
Functions:
write(words) styleme(words) choose_color() save_favs()
Config:
c = Colorful(fg=1, bg=2, it=True) --All config can be set inside here, or as shown below. c.fg = 1 c.bg = 2 c.it = True c.ul = False c.bo = False c.st = False c.sh = False c.ft = False --not sure if this one is working totally properly yet Can set the style straight when calling the class, or set it like displayed above.
FindMe()
See below for the current functions and config for class FindMe()
Functions
showme(document) listme(TBC) listmepretty(TBC)
Config
styled = FindMe( key1=value1, key2=value2, key3=value3 ) styled.fg = 207 styled.bo = True styled.it = True etc etc... Has all the same fg, bg, it, bo, ul etc etc.
for the key=values: use {key} in the text document, and for value simply write what you want it to be. For example: document = "Here is a {sample} that serves as an {example} to {show} how this works." styled = FindMe( sample="sweet story" example="eternal uplifter" show="literally display" ) styled.fg = 208 styled.bo = True styled.ul = True styled.showme(document)
Styleish()
See below for the current functions and config for class Styleish()
Functions
findme() highlight(words) italics(words) underline(words) strikethrough(words) swap(words) bold(words)
Config
For styleish, set config s = Styleish() s.fg = 117 s.bg = 218 Can do s.it = True etc but the functions below aren't affected by that so they can be used in combination with each others.
Combinations
Combine Findme() and Colorful() For example:
dogs = ["Max", "Bobby", "Dracula", "Leopold"]
c = Colorful(fg=204, it=True)
d = FindMe()
d.listme([c.styleme(dog) for dog in dogs])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file manychrome-0.0.1.tar.gz.
File metadata
- Download URL: manychrome-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e38354252e0ca9ecd9a89b142a5a470f0a9ea15757b9fabc45e31bbc4cec9f1
|
|
| MD5 |
a05a0aebf256531ca3546c04d835b264
|
|
| BLAKE2b-256 |
907d3e0bc9be05ff01b92d5ac7ed5b4a082b88f0dca9d7d98b91a26273866820
|
File details
Details for the file manychrome-0.0.1-py3-none-any.whl.
File metadata
- Download URL: manychrome-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f8559af417e3cf29de707dd3f28bd535585d9e441825911fde21d772d8a9e95
|
|
| MD5 |
ea820d24c5693bf0feb887e33c27fe62
|
|
| BLAKE2b-256 |
feca37794f665c7b5bc7d978600b9b6eb05eb69e6976eddc701d1b466ab1656d
|