-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bde6d2b
commit 0c2d844
Showing
6 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ colorpattern.egg-info/ | |
env/ | ||
env | ||
docstring.* | ||
*/__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# ColorPattern | ||
|
||
ColorPattern is a Python module designed for enhancing text output in the console by applying color to specific patterns. It offers a flexible way to define patterns and apply different text colors, background colors, styles, and underlines to matching text in the output. | ||
ColorPattern is a Python module designed for enhancing text output in the console by applying color to specific patterns. It offers a flexible way to define patterns and apply different text colors, background colors, styles, underlines and other options to predefined patterns. | ||
|
||
In Version 1.4.1 can strikethrough, blink text and italic text | ||
Use regular expressions to define the pattern to color. With the color pattern initialized, any console output that matches the pattern will have the defined styles applied to it. | ||
|
||
Since Version 1.4.1 can strikethrough, blink text and italic text | ||
|
||
## Installation | ||
|
||
|
@@ -13,8 +15,12 @@ You can install ColorPattern using pip: | |
|
||
## Usage | ||
|
||
Set the patterns whith SetPatterns(<pattern>, <options>) | ||
|
||
Use ```start_color(<patterns>)``` for initialize the color print, and ```end_color()``` for stop colorization. | ||
|
||
### Example | ||
|
||
```python | ||
from colorpattern.colorpattern import * | ||
|
||
|
@@ -34,7 +40,7 @@ def main(): | |
start_color([pattern1, pattern2, pattern3, email, strike, italic,blink]) | ||
|
||
# Use the custom print function with colorization | ||
print('Colorpattern v1.4.1') | ||
print('Colorpattern v1.4.2') | ||
print('By Croketillo - [email protected]') | ||
print('NEW!!! - NOW YOU CAN INCLUDE STRIKETHROUGH IN PATTERNS') | ||
print('This is a BLINK and ITALIC TEXT test') | ||
|
@@ -45,7 +51,7 @@ def main(): | |
# Now, printing returns to normal | ||
|
||
print('-----------------------') | ||
print('Colorpattern v1.4.1') | ||
print('Colorpattern v1.4.2') | ||
print('By Croketillo - [email protected]') | ||
print('NEW!!! - NOW YOU CAN INCLUDE STRIKETHROUGH IN PATTERNS') | ||
print('This is a BLINK and ITALIC TEXT test') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,11 @@ the console by applying color to specific patterns. It offers a flexible | |
way to define patterns and apply different text colors, background | ||
colors, styles, and underlines to matching text in the output. | ||
|
||
In Version 1.4.1 can strikethrough, blink text and italic text | ||
Use regular expressions to define the pattern to color. With the color | ||
pattern initialized, any console output that matches the pattern will | ||
have the defined styles applied to it. | ||
|
||
Since Version 1.4.1 can strikethrough, blink text and italic text | ||
|
||
Installation | ||
------------ | ||
|
@@ -18,9 +22,13 @@ You can install ColorPattern using pip: | |
Usage | ||
----- | ||
|
||
Set the patterns whith ``SetPatterns(<pattern>, <options>)`` | ||
|
||
Use ``start_color(<patterns>)`` for initialize the color print, and | ||
``end_color()`` for stop colorization. | ||
|
||
EXAMPLE: | ||
|
||
.. code:: python | ||
from colorpattern.colorpattern import * | ||
|
@@ -41,7 +49,7 @@ Use ``start_color(<patterns>)`` for initialize the color print, and | |
start_color([pattern1, pattern2, pattern3, email, strike, italic,blink]) | ||
# Use the custom print function with colorization | ||
print('Colorpattern v1.4.1') | ||
print('Colorpattern v1.4.2') | ||
print('By Croketillo - [email protected]') | ||
print('NEW!!! - NOW YOU CAN INCLUDE STRIKETHROUGH IN PATTERNS') | ||
print('This is a BLINK and ITALIC TEXT test') | ||
|
@@ -52,7 +60,7 @@ Use ``start_color(<patterns>)`` for initialize the color print, and | |
# Now, printing returns to normal | ||
print('-----------------------') | ||
print('Colorpattern v1.4.1') | ||
print('Colorpattern v1.4.2') | ||
print('By Croketillo - [email protected]') | ||
print('NEW!!! - NOW YOU CAN INCLUDE STRIKETHROUGH IN PATTERNS') | ||
print('This is a BLINK and ITALIC TEXT test') | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,15 +84,15 @@ def read(file_name=None, is_encoding=True, ignore_raises=False): | |
|
||
setup( | ||
name='colorpattern', | ||
version='1.4.1', | ||
version='1.4.2', | ||
author='croketillo', | ||
author_email='[email protected]', | ||
license=read("LICENSE", is_encoding=False, ignore_raises=True), | ||
packages=find_packages(), | ||
install_requires=[ | ||
'colorama', | ||
], | ||
description='Effortless console text colorization based on user-defined patterns in Python.', | ||
description='Effortless console text colorization based on user-defined patterns.', | ||
long_description=read("README.rst"), | ||
url='https://github.com/croketillo/colorpattern', | ||
classifiers=[ | ||
|