Skip to main content

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

cyprint('info信息', "INFO")
cyprint('警告信息', "WARNING")
cyprint('成功信息', "SUCCESS")
cyprint('错误信息', "ERROR")
cyprint('debug信息', "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

cyprint-1.0.6.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

cyprint-1.0.6-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file cyprint-1.0.6.tar.gz.

File metadata

  • Download URL: cyprint-1.0.6.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for cyprint-1.0.6.tar.gz
Algorithm Hash digest
SHA256 09eff8e384f9991c3993e80eae69f043d11060b3f8c1dde2dcf9e18c466a98c5
MD5 ef2b16cfad143c29d1b1a6d774bf62d4
BLAKE2b-256 1c9b56c8ee36b4c69360d40fc51e3ebf88cf0b67aa59c3cc55ea3a3cd5e7e60d

See more details on using hashes here.

File details

Details for the file cyprint-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: cyprint-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for cyprint-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4692cbc342b58f910a05cc528c1ba5b0dc38d39bf6ce5f400ec8fc824b1c9016
MD5 6f34ba5b6b9513c6ee61346dc2a39946
BLAKE2b-256 a6d7a752fc19ab3ac237212ca1b944a8ee3e757950d98b05e47fc3d7f63cfcd2

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