Skip to main content

Beautiful output on the terminal

Project description

Painting

Painting can print characters, numbers, lists and dictionaries better on the terminal. Support the escape of Emoji expression.

In addition, new components are added, which does not represent the final quality

Install

pip install painting -U

Usage

Print various types

from painting import Painting

console = Painting()

console.log("Welcome to Painting")
# - Welcome to Painting

console.log(3.1415926)
# - 3.1415926

console.log([
    "the Great Wall",
    "the Palace Museum",
    "the White House",
])
# - (1) the Great Wall
# - (2) the Palace Museum
# - (3) the White House

console.log({
    "Beijing":"P.R.C.",
    "Washington D.C.":"U.S.A.",
    "London":"U.K."
})
# - [Beijing] P.R.C.
# - [Washington D.C.] U.S.A.
# - [London] U.K.s

The escape of Emoji

console.log("Welcome to Painting :red_heart:")
# - Painting is great fun ❤

Link

Website: https://github.com/isclub/painting

Releases: https://pypi.org/project/painting

License

MIT LICENSE

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

painting-1.0.1.tar.gz (1.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page