str-style is a Python package for enhancing the visual appearance of text. Easily apply a variety of styles like bold, underline, colors, and more to your strings in both CLI and Python scripts.
Project description
str-style
str-style is a Python package that provides string styling functions to enhance the visual appearance of text.
Usage
To use the str-style package in CLI, yoiu simply need to run the following:
str-style red Hello world
This will print the string "Hello world" with red styling applied.
To use the str-style package in your own python script, follow these steps:
- Import the desired styling function(s) from strstyle module.
- Apply the styling function(s) to your string(s) to modify their appearance. Here's an example of how to use the red styling function:
>>> from strstyle import red
>>> print(red('Hello world'))
This will print the string "Hello world" with red styling applied.
Available CLI Styling
- bold
- disabled
- italic
- underline
- sharp
- invisible
- strike-through
- double-underline
- black
- red
- green
- orange
- blue
- purple
- cyan
- light-grey
- red-background
- green-background
- yellow-background
- blue-background
- purple-background
- cyan-background
- light-grey-background
- dark-grey
- light-red
- yellow
- light-blue
- pink
- light-cyan
Available Styling Functions
- bold
- disabled
- italic
- underline
- sharp
- invisible
- strike_through
- double_underline
- black
- red
- green
- orange
- blue
- purple
- cyan
- light_grey
- red_background
- green_background
- yellow_background
- blue_background
- purple_background
- cyan_background
- light_grey_background
- dark_grey
- light_red
- yellow
- light_blue
- pink
- light_cyan
Contributing
Contributions to str-style are welcome! If you encounter any issues, have suggestions, or want to contribute improvements, please feel free to open an issue or submit a pull request.
License
This package is licensed under the MIT License. See the LICENSE file for more details.
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
File details
Details for the file str_style-1.0.1.tar.gz
.
File metadata
- Download URL: str_style-1.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b613f2c3342452afcef5b607745f26649b71c22c4e4581de1f596b9a5fc82db4 |
|
MD5 | b2afc783a32833840581586a527b2e73 |
|
BLAKE2b-256 | 609635fba4ec6e301efac9e78b00ec41a95123c3344b870b42f42b5294fe57bd |
File details
Details for the file str_style-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: str_style-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1795d1a8c9cf806eac259748c14ebdd56277ae8689c69cad919464db552cb17 |
|
MD5 | 02f1fe0a21f3f17552b8f2d80ecba15f |
|
BLAKE2b-256 | 28c4824bfe0107a09c3be2347b5aa34dc30542c7350f0467c2272ff19c63fbf2 |