Colorful Debug
Author: Nabil El Ouaamari (nabil.elouaamari.dev@gmail.com)
Description
Colorful Debug is a Python module that provides colorful and customizable debug print messages with timestamps. It's designed to make debugging your applications more user-friendly and visually appealing.
Installation
You can install Colorful Debug using pip:
pip install colorful_debug
Usage
from colorful_debug import ColorfulDebug
debug = ColorfulDebug(show_timestamp=True, all_bold=False)
debug.print(message, msg_type="normal", ov_bold=None)
debug.print("This is a normal message")
debug.print("This is a warning message", msg_type="warning")
debug.print("This is an info message", msg_type="info")
debug.print("This is an error message", msg_type="error")
Customization
debug.set_color("warning", "yellow")
debug.set_prefix("info", "[Info]")
debug.set_show_timestamp(False)
debug.new_message_type("success", prefix="[Success]", suffix="", color="green", bold=False)
debug.print("This is a success message", msg_type="success")
debug.set_color("success", "blue")
debug.set_prefix("success", "[OK]")
debug.set_suffix("success", " (OK)")
debug.set_bold("success", True)
Configuration
You can configure Colorful Debug to fit your needs. Customize colors, prefixes, timestamps, and more.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Contact / Support
If you have any questions, suggestions, or concerns, feel free to contact me at nabil.elouaamari.dev@gmail.com.
Acknowledgements