Skip to main content

🌈 fscolor - F-String Color Formatting for Python

PyPI Version Python Versions License

fscolor is a lightweight Python package that brings effortless color formatting to f-strings using ANSI escape codes. Designed for simplicity and readability, it enables developers to create vibrant console output with minimal code changes.

Features ✨

  • 🎨 8 Basic Colors: Black, Red, Green, Yellow, Blue, Magenta, Cyan, White

  • 🔄 Automatic Reset: No need to manually reset colors

  • 💻 Cross-Platform: Works on most modern terminals

  • 🚀 Zero Dependencies: Pure Python implementation

  • 📦 F-String Ready: Designed specifically for Python 3.6+ formatted strings

  • 🔧 Extensible Architecture: Easily add custom colors or styles

Installation 📦

pip install fscolor

Use Cases

Examples - See Jupyter Notebook for various use cases.

Compatibility Notes ⚠️

  • Requires terminal supporting ANSI escape codes

  • Colors may appear different based on terminal theme

  • Not recommended for file output or non-TTY devices

Roadmap 🗺️

  • 256-color support

  • Background colors

  • Text styles (bold, italic, underline)

  • Windows compatibility layer

Contributing 🤝

Contributions welcome! Please check later for details.

License 📄

MIT License - See LICENSE for details.

Metadata

Release files for fscolor 0.1.2

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

Source distribution (sdist)

Source distribution for fscolor 0.1.2
File Size Uploaded Provenance
fscolor-0.1.2.tar.gz 3.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 7.0 kB

Release files / fscolor-0.1.2.tar.gz

Download URL fscolor-0.1.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
25e27fff2c8774e3ba1e1b5c354a2d960732168d8fbc937035ef901fd6e76a8c
BLAKE2b-256 checksum
How to use checksums
8e4ca10f6542fb6feb91aeaf6a3b2682c0ffb14ca11e65376e9a574420bf070a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / fscolor-0.1.2-py3-none-any.whl

Download URL fscolor-0.1.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3c505bdd1f697c6c57c6123aa6e379034fa2a20d6a4686731a87089e846c7f0
BLAKE2b-256 checksum
How to use checksums
3433b692f4d9306ddea3ee89ac3e3c982d2ba6c4d24516a16228e4066f78a01e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for fscolor 0.1.2

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.

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