Skip to main content

Printing and debugging with color

Project description

cprintf

Install

pip install cprintf

Usage

import cprintf


cprintf.info("普通字符串")
cprintf.info('{"hello": "world", "list": [1, 2, 3]}')
cprintf.info({"hello": "world", "list": [1, 2, 3]})
cprintf.warn({"warn_key": True})
cprintf.err("这是一条错误信息", format_mode='pprint')
cprintf.fatal("This is a fatal error.")
cprintf.ok('强制使用 pprint 模式', format_mode='pprint')
cprintf.debug('强制使用 raw 模式', format_mode='raw')
cprintf.line()
cprintf.custom("This is a custom color message in cyan!", "\033[96m")
cprintf.line(char='=', length=60, color='OK')

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

cprintf-0.0.6.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

cprintf-0.0.6-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file cprintf-0.0.6.tar.gz.

File metadata

  • Download URL: cprintf-0.0.6.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.10

File hashes

Hashes for cprintf-0.0.6.tar.gz
Algorithm Hash digest
SHA256 09738b4c3686b2a0bbae60e330dfcec32d9bbcba2539b05f730d4bee63ed8755
MD5 5ff54f6724b00d5715a25b3d4c049f76
BLAKE2b-256 f578f2e8e923be848629efe334b96f158c36418c2212976d20678c18cb19ebe6

See more details on using hashes here.

File details

Details for the file cprintf-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: cprintf-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.10

File hashes

Hashes for cprintf-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 941c6cc2a24c22c819308b56388b1ebb956c48912b3ea986461b696c14324e37
MD5 3bd28d9e83169b1edb42213155810ef4
BLAKE2b-256 ed5429e9acbddbf000e7f629c1436e0eb87b78124aaa3ea0e1c9fd9c46c25e08

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