colorich 0.6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of colorich might be problematic. Click here for more details.

@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.1
2
+ Name: colorich
3
+ Version: 0.6.0
4
+ Author: Ethan Amar
5
+ Author-email: EthanA120@Gmail.com
@@ -0,0 +1,31 @@
1
+ # colorich
2
+ Python module - Use ANSI formatting to color output text by hexadecimal values, RGB values or by color specific name or decorate it
3
+
4
+ Use ANSI formatting to color output text by hexadecimal values, RGB values or by color specific name or decorate
5
+ it.\
6
+ The color names and values is inspired by https://www.w3schools.com/colors/colors_names.asp and
7
+ https://github.com/jonathantneal
8
+
9
+ Functions:\
10
+ expand - Expands the colors list, extra colors will be available if this function will be executed.
11
+
12
+ enrich - Return colored and decorated font for rgb values or for hex.\
13
+ e.g. print(enrich("SeaGreen", (45, 140, 85)), "\n")
14
+ This example will color and print the text "SeaGreen" in the rgb color of (45, 140, 85) (Green) and start a new line
15
+
16
+ dye - Only determine the foreground color of the font but can accept a dictionary of strings with their different colors values.\
17
+ e.g. print(dye({"Periwinkle ": "periwinkle ", "Iceberg ": "Ice berg", "and ": "", "Forest green\n": "Forest green"}))\
18
+ This example will color and print the text "Periwinkle Iceberg and Forest green" with several colors - every word will be colored with the color that is writen next to it, notice that the word "and" won't be colored because no color has been writen next to it.
19
+
20
+ printr - Prints the decorated colorized text that have sent as argument.\
21
+ e.g. printr("Bold Turquoise on MediumSlateBlue", (64, 224, 208), "#7B68EE", "B", "\n")\
22
+ This example will color, decorate and print the text "Bold Turquoise on MediumSlateBlue" as it says.\
23
+ (64, 224, 208) is the text color, #7B68EE is the background color, "B" makes it bold, and \n will start a new line.
24
+
25
+ printd - Prints text that have sent as an argument in multiple colors.
26
+ e.g. printd("Red ; red", "Slate Blue ; slateBlue", "default color ", "and; Orange Red\n; OrangeRed")
27
+ This example will color and print the text "Red Slate Blue default color and Orange Red" with several colors and eventualy will start a new line.
28
+
29
+ show - prints all the colors and decorations name available and how it looks like.
30
+
31
+ Examples are in the bottom of the main file.
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.1
2
+ Name: colorich
3
+ Version: 0.6.0
4
+ Author: Ethan Amar
5
+ Author-email: EthanA120@Gmail.com
@@ -0,0 +1,6 @@
1
+ README.md
2
+ setup.py
3
+ colorich.egg-info/PKG-INFO
4
+ colorich.egg-info/SOURCES.txt
5
+ colorich.egg-info/dependency_links.txt
6
+ colorich.egg-info/top_level.txt
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,9 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name = 'colorich',
5
+ author='Ethan Amar',
6
+ author_email='EthanA120@Gmail.com',
7
+ version = '0.6.0',
8
+ packages = [],
9
+ )