Skip to main content

A Python library for pretty printing and enhanced console output.

Project description

PrettyPi

PretiPy 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).
  • 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

styled_str = StyledStr("Toto", color=Color.RED, style=Style.BOLD)
print(f"My name is {styled_str} {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.2.tar.gz (4.3 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.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prettypi-0.1.2.tar.gz
  • Upload date:
  • Size: 4.3 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.2.tar.gz
Algorithm Hash digest
SHA256 fa6f5e4d51973d4dff1979e2bafdf063fe9d716c5d42978bcf52d8c7506801a5
MD5 2fa846f242c67a7f93e16528fae98bdf
BLAKE2b-256 2d6014aacdc297ddf7694d24036e597533d76e410328b9c431d8dfb9956f66bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prettypi-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae8445bd960f78ffeea09774f0a9d6a6c0cffea29c5e6126bf898789a89e9c76
MD5 62a9d48bac13f140ae470aca7ca34d38
BLAKE2b-256 ffba537bc1b650c2f0ab97f930278bc7cc28e337bbc8d1af1da31321809e0e52

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