Skip to main content

Print2 helps print beautiful message with indent and color

Project description

Print2

Simple Example

from print2 import pprint

pprint("Hello world !", prefix="### ", indent="\t", color="green", level=2)

Result

### Hello world !

Advanced example

from print2 import PPrint

pp = PPrint(prefix="* ", level=1)

pp.print(
    """LINE 1
LINE 2
"""
)

pp.set_level(2)
pp.set_prefix("# ")

pp.print(
    """AAAA
BBB
CCC
DDD
EEE
FFF
"""
)

pp.inc_level()

pp.print("Final")

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

print2-0.2.9.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

print2-0.2.9-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file print2-0.2.9.tar.gz.

File metadata

  • Download URL: print2-0.2.9.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for print2-0.2.9.tar.gz
Algorithm Hash digest
SHA256 985ddb2fa0c7882f9478cc7360894c2e97d99f0da08886ce4f7354bad629ceed
MD5 7e103924534bde8f4e3bdca47391aca9
BLAKE2b-256 df61b5ba11dc921af02cb707dcf73cdf4100966544da306847738196913fa910

See more details on using hashes here.

File details

Details for the file print2-0.2.9-py3-none-any.whl.

File metadata

  • Download URL: print2-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for print2-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 14c9066df16d60f5d4a6dbd9bfeb221666b4c1caf6ca55251a3f4d29d65019e0
MD5 6e028fdaaa9968990874d178b2bc0543
BLAKE2b-256 a68d801037625b01c86849f3c03d84be0dd9aa2b42b69de65e070b65aeafd25e

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