Skip to content

Commit

Permalink
Update version 1.4.2
Browse files Browse the repository at this point in the history
croketillo committed Nov 16, 2023
1 parent bde6d2b commit 0c2d844
Showing 6 changed files with 24 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -5,3 +5,4 @@ colorpattern.egg-info/
env/
env
docstring.*
*/__pycache__/
14 changes: 10 additions & 4 deletions README.md
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')
14 changes: 11 additions & 3 deletions README.rst
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 added dist/colorpattern-1.4.2-py3-none-any.whl
Binary file not shown.
Binary file added dist/colorpattern-1.4.2.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions setup.py
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=[

0 comments on commit 0c2d844

Please sign in to comment.