Skip to main content

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.

Project description

Banner Termpyx

TermPyx

Beautiful and Animated Terminal Logging for Python 🐍✨

PyPI Version License Python Versions


🌟 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!

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

termpyx-0.1.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

termpyx-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file termpyx-0.1.0.tar.gz.

File metadata

  • Download URL: termpyx-0.1.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-50-generic

File hashes

Hashes for termpyx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 76bf6aac9de144ee96a145c5a6fc0abcc5946acf37fec930297558ebec9a3782
MD5 d384d958517adebeced049e6aa5e5812
BLAKE2b-256 864ebe4afd6e0e4bd8ac96b22ecfdebd067ddcff077f061976e8623aa53101e8

See more details on using hashes here.

File details

Details for the file termpyx-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: termpyx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-50-generic

File hashes

Hashes for termpyx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a54ac0da7970c2ba994f4218eca9ec4f8133ba311125e72d2eb9bc5efa04dbb
MD5 b447f6e42dabea00745f9e3fa91e625d
BLAKE2b-256 01440a5dbc2ca2db47e6c1a026cefa16edf349d980d7faa0f6e16d17af106d20

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