Skip to main content

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
  • .pdat file support (optional)

Planned:

  • Background colors
  • Easier custom header fonts
  • 24-bit (truecolor) support
  • 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")

# 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.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmdstyler-0.1.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file cmdstyler-0.1.3.tar.gz.

File metadata

  • Download URL: cmdstyler-0.1.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for cmdstyler-0.1.3.tar.gz
Algorithm Hash digest
SHA256 39dc3d86d4a257b654e38c201d76a0140c097860faeb6877439f5be611467992
MD5 2f92eb9ae7a2f766b96bcec4ec1543d8
BLAKE2b-256 22c311cbb2c377f6ae0165b204eaf0e75d65b7680eac48305d0db933797bcda9

See more details on using hashes here.

File details

Details for the file cmdstyler-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cmdstyler-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for cmdstyler-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f9c8477f54c557ef026f8dc16d45a015a1bdd2c1a17d5ca59f122e3c6c68e69
MD5 bce96cd3e5aebc4b53c6bfbd6f09e611
BLAKE2b-256 11ae1ccefcac5826ccd1054a20fdcffaeb7807373f99f7b9ae5a3c66471574cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page