Better CMD text utilities, uses the pdat file format
Project description
cmdstyler
Easily style your CMD/terminal output with headers, colors, and more.
Supports .pdat files for larger projects to keep your code clean.
✨ Features
- ASCII art headers
- 8-bit text coloring
- Empty line spacing
.pdatfile support (optional)- Background colors
- 24-bit (truecolor) support
Planned:
- Easier custom header fonts
- Progress bars
- Centered text
📦 Installation
pip install cmdstyler
Usage
How to use cmdstyler:
import cmdstyler as cs
# Print a header
cs.header("Hello World")
# Add empty lines
cs.empty(2)
# Print colored text (8-bit)
cs.color("34;This is blue text")
#Print colored text (24-bit or Hex)
cs.rgbcolor("#FFD700", "I am an yellow text!")
cs.rgbcolor((255, 215, 0), "I am an yellow text too!")
#print text with colored background(8-bit)
cs.background(161, "I have a red background!")
#print colored text with colored background(8-bit, first fg, the bg)
cs.bothcolors(161, 19, "I am a red text on a blue background!")
# Load from a .pdat file
cs.beautify("example.pdat")
PDAT file syntax
{header : Hello Guys!}.
# The first word is the function name
# The : separates the function from its argument
# Everything after that is the output
{empty : 2}.
# Creates 2 empty lines
{color : 161 ; This text is red}.
# Prints a colored line with the specified 8-bit color
{textblock : Hallo Welt}.
# Prints a simple line of text
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cmdstyler-0.1.4.tar.gz
(5.5 kB
view details)
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 cmdstyler-0.1.4.tar.gz.
File metadata
- Download URL: cmdstyler-0.1.4.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5d83da5e56e6c768014429cd3d60b4c7ab7c3c152cd6fb58b4b65b4f3c1c268
|
|
| MD5 |
81ed2aa893208f28a1d4fa8042d3da81
|
|
| BLAKE2b-256 |
053e00ca9fd8d796a4f3c670386133849bece81b4b0f14bb336931b35e43dd62
|
File details
Details for the file cmdstyler-0.1.4-py3-none-any.whl.
File metadata
- Download URL: cmdstyler-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe7199f4d3368779479ddb042cf3e3743702bfbcc6c07fda00d37cfa0ed2e85d
|
|
| MD5 |
dc3f0150427f6c48ac4aa5ccf9fb4d27
|
|
| BLAKE2b-256 |
2949419a223d64568c451bffe7de8a94e013986e621eacccc6c6d9f85e17a2f6
|