TermPyx
Beautiful and Animated Terminal Logging for Python 🐍✨
🌟 Overview
TermPyx is a Python library designed to enhance terminal logging with colors and animations. It provides an intuitive interface for displaying various log levels, including success, info, warning, danger, and debug messages, all with customizable colors and optional animated text output.
🚀 Features
- 🎨 Colored Logging: Easily distinguish log messages with customizable colors.
- 🎬 Animated Output: Optional animated text display for dynamic terminal feedback.
- 📝 Multiple Log Levels: Support for success, info, warning, danger, and debug messages.
- 📏 Section Separators: Create visually distinct sections in your terminal output.
- 🐞 Debug Mode: Toggle debug messages on or off as needed.
🛠️ Installation
Install TermPyx using pip:
pip install termpyx
📖 Usage
Here's how to get started with TermPyx:
from termpyx import Console
# Initialize the console with animation and debug mode enabled
console = Console(animated=True, in_debug=True)
# Standard log message
console.log("Processing data...")
# Success message
console.success("Operation completed successfully!")
# Info message
console.info("This is an informational message.")
# Warning message
console.warning("This is a warning message.")
# Danger/Error message
console.danger("An error has occurred!")
# Debug message (only displayed if in_debug is True)
console.debug("Debugging details here.")
# Error message
console.error("An error has been ocurred.")
# Section separator
console.separator("Section 1")
🎨 Customization
You can customize the colors of different log levels by modifying the Console class attributes:
from termpyx import Console, Color
console = Console()
console.cLog = Color.CYAN
console.cSuccess = Color.MAGENTA
# ... and so on for other log levels
🐞 Debug Mode
To enable or disable debug messages:
console = Console(in_debug=True) # Debug messages will be shown
console = Console(in_debug=False) # Debug messages will be hidden
🎬 Animated Output
Enable animated text output by setting the animated parameter to True:
console = Console(animated=True)
🛡️ License
This project is licensed under the MIT License. See the LICENSE file for details.
🤝 Contributing
Contributions are welcome! Please fork the repository and submit a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.
📞 Contact
For any questions or inquiries, please open an issue on the GitHub repository.
Elevate your terminal logging experience with TermPyx!
Metadata
Release files for termpyx 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| termpyx-0.1.0.tar.gz | 8.0 kB | Without provenance | Details for termpyx-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| termpyx-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for termpyx-0.1.0-py3-none-any.whl |
Total release size: 12.8 kB
Release files / termpyx-0.1.0.tar.gz
| Download URL | termpyx-0.1.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76bf6aac9de144ee96a145c5a6fc0abcc5946acf37fec930297558ebec9a3782
|
|
BLAKE2b-256 checksum How to use checksums |
864ebe4afd6e0e4bd8ac96b22ecfdebd067ddcff077f061976e8623aa53101e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-50-generic
|
Release files / termpyx-0.1.0-py3-none-any.whl
| Download URL | termpyx-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a54ac0da7970c2ba994f4218eca9ec4f8133ba311125e72d2eb9bc5efa04dbb
|
|
BLAKE2b-256 checksum How to use checksums |
01440a5dbc2ca2db47e6c1a026cefa16edf349d980d7faa0f6e16d17af106d20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-50-generic
|
Security for termpyx 0.1.0
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.