Customized colorful logging in Python
Project description
CyPrint
CyPrint is a Python package for customized colorful logging.
Installation
You can install CyPrint using pip:
pip install cyprint
Usage
from cyprint import cyprint, LogLevel
cyprint('info信息', LogLevel.INFO)
cyprint('警告信息', LogLevel.WARNING)
cyprint('成功信息', LogLevel.SUCCESS)
cyprint('错误信息', LogLevel.ERROR)
cyprint('debug信息', LogLevel.DEBUG)
Customizing Log Messages
You can also create custom log messages by specifying the log level:
cyprint('Custom message', 'debug')
Contributing
We welcome contributions! If you'd like to contribute to CyPrint, please fork the repository and submit a pull request.
License
This project is licensed under the MIT License - see the [LICENSE] file for details.
将上述内容保存到名为 `README.md` 的文件中,确保其中的信息与你的项目一致,并提供必要的安装和使用示例。然后将它放在你的项目根目录下。
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cyprint-1.0.2.tar.gz.
File metadata
- Download URL: cyprint-1.0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd9b1590a65a1194f987ad527b6177e937e8f2f09920f2f0c55ced8265ca4d4b
|
|
| MD5 |
bac904d5044e95600a6f746a26e44849
|
|
| BLAKE2b-256 |
7e09499cf3eaa175f6a3ee85abe01787bc73298568079795887e82e00ebe1c8a
|
File details
Details for the file cyprint-1.0.2-py3-none-any.whl.
File metadata
- Download URL: cyprint-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3f527c9ace8b057267a556209be23f8e38af9d1449a5c2a2645cb44924bebe7
|
|
| MD5 |
3b49fb1ee46847fc9ed87522663e80d8
|
|
| BLAKE2b-256 |
41871d1cde202e62e29705ffaa2de1daaad565182eb5868dbcb17a0223d3cb53
|