Skip to main content

A Python library for pretty printing and enhanced console output.

Project description

PrettyPi

PyPI - Python Version PyPI version PyPI - Downloads

PrettyPi is a Python library for enhancing console output with colorful and style text, emojis, tables, and more.

Features

  • PrettyPrint
    • Emoji: Add emojis to your console messages.
    • Color: Easily print text in various colors.
    • Style: Easily print text with style.
    • Background Color: Print text with colored background.
    • Alignment: Support text alignment (left, center, right).
    • Message: print special messages
  • PrettyTable
    • Display: Create and display tables in the console.
    • Custom: Customize table formatting and styles.
    • Template: Define and use templates for displaying tables.
    • Sorting: Implement sorting functionality for table columns.
    • Filtering: Add filtering capabilities to tables based on user-defined criteria.
    • Pagination: Enable pagination for large datasets displayed in tables.

Installation

You can install PretiPy using pip:

pip install prettypi

Usage

Here's a quick example of how to use PrettyPi:

pretty_print

from prettypi.pretty_print import StyledStr, Color, Style, Emoji, BackgroundColor

styled_str = StyledStr("My name", background_color=BackgroundColor.MAGENTA, style=Style.UNDERLINE)
styled_str2 = StyledStr("Toto", color=Color.RED, style=Style.BOLD)

print(f"{styled_str} is {styled_str2} {Emoji.SMILE}")

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

prettypi-0.1.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

prettypi-0.1.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file prettypi-0.1.3.tar.gz.

File metadata

  • Download URL: prettypi-0.1.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for prettypi-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5ba10d632fb57e06dee18cca08f8077013ab8d505863b8af2270db5cce212398
MD5 f8cc4c64eab7b275f7bae3be73d684ec
BLAKE2b-256 141db5575e6d015bcb94284e82c1801b8989c254f05c30a1ed5d3c78b2bdfb9f

See more details on using hashes here.

File details

Details for the file prettypi-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: prettypi-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for prettypi-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 21ae8121718a802d16835aabfafca9a9d842cc9abdec3ba725381685f03d1734
MD5 31ae28f17953458f3b41b76db95dec2d
BLAKE2b-256 72097bf8246a87cc056c8aa3d915e77b21de65de1aee476f950d18c02de05cc5

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