Skip to main content

pytextcon

pytextcon is a lightweight, simple package designed to make basic changes to the text color, text emphasis, and background color of print statements to the console simple.

Getting Started

Download pytextcon:

pip install pytextcon

Usage

Use an f-string to include text formatting to print statements. Formatting will continue until cleared. Use RESET to end all formatting. Use DEFAULT to clear text color only.

Example:

import pytextcon

text = pytextcon.ForText()

print(f"{text.BOLD}{text.BLUE}Some text that will be bold and blue.{text.DEFAULT}\
Some other text that will be bold but not blue")

print(f"{text.UNDERLINE}{text.BLUE}Some text that will be bold, underlined, and blue.\
{text.RESET}Some other text that will not be bold, underlined or blue")

Formatting Options

Basic Colors:

BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE

Bright Colors:

BLACK_BR, RED_BR, GREEN_BR, YELLOW_BR, BLUE_BR, MAGENTA_BR, CYAN_BR, WHITE_BR

Basic Color Backgrounds:

BLACK_BG, RED_BG, GREEN_BG, YELLOW_BG, BLUE_BG, MAGENTA_BG, CYAN_BG, WHITE_BG

Bright Color Backgrounds:

BLACK_BRBG, RED_BRBG, GREEN_BRBG, YELLOW_BRBG, BLUE_BRBG, MAGENTA_BRBG, CYAN_BRBG, WHITE_BRBG

Emphasis:

BOLD, DIM, ITALIC, UNDERLINE, UNDERLINE2, BLINK, STRIKE

Clear:

DEFAULT, RESET

Metadata

Release files for pytextcon 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytextcon 0.1.6
File Size Uploaded Provenance Actions
pytextcon-0.1.6.tar.gz 3.5 kB Without provenance Details for pytextcon-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytextcon 0.1.6
File Interpreter ABI Platform Actions
pytextcon-0.1.6-py3-none-any.whl Python 3 none any Details for pytextcon-0.1.6-py3-none-any.whl

Total release size: 7.3 kB

Release files / pytextcon-0.1.6.tar.gz

Download URL pytextcon-0.1.6.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6484b91f440f9b3783f76ee8cee3e970f849a6dc5312d9ed547df8a12513a6ce
BLAKE2b-256 checksum
How to use checksums
a60c42c0df671d7a57e40f9f46d89ae61c688669d91ee87028c21e9315576928
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Release files / pytextcon-0.1.6-py3-none-any.whl

Download URL pytextcon-0.1.6-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
500cc003f96204b5b81f99740150d83bdc533b9451794c3ce60e6b4d6b0ebf02
BLAKE2b-256 checksum
How to use checksums
5f54f89046f512a528b3d37ac6f2c1470c5b765d5001dd0224583dddf8c939a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Security for pytextcon 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page