Skip to main content

BePrint -- Make Your Python Print Statements Beautiful

Project description

BePrint -- A Python Package

Make Your Python Print Statements Beautiful

Introduction

beprint (beautiful print) is a simple package that can print messages in different colors and styles.

Warning: This package is for beginners and is not suitable for advanced users.

Installation

Run the following command to install the package via pip: (See https://pypi.org/project/beprint/0.1.0/)

pip install beprint

You can also clone the repository and run the following command to install the package:

pip install .

# Import the package
from beprint import *
beprint('Hello, world!')

Features

You can find more information about the package in the examples folder.

  • Align Texts - The package can align text using the align function. You can also use the align_center, align_left, align_right, and align_stretch functions to align text.
  • ANSI Codes - The package uses ANSI escape codes to print messages in different colors and styles. Example: Ansi.string('red').light().style('bold').
  • Code Highlight - The package can highlight any code using the highlight_code function. This feature is powered by the pygments library.
  • Columns Layout - The package can print messages in columns using the columns function.
  • Markdown Preview - The package can preview markdown messages using the parse_markdown function. This feature is powered by the mistune library.
  • Printing Objects - The package can print objects with colors and styles using the beprint or bp function.
  • Table - The package can print messages in tables using the Table class. Base features: Add rows, columns, and pretty print.

With:

  • Windows - The package works on Windows.
  • Python 3.11+ - The package works with Python 3.11 and above.
  • License - The package is licensed under the Apache 2.0 license.
  • Full width support - The package can print messages in MANY different characters, including full-width characters.

Test here: 你好!Hello!

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

beprint-0.1.3.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

beprint-0.1.3-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for beprint-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f7dd446601c97466f63823e2d052f104e6252a6f78b7086385c8bebdd19eaadc
MD5 279ef1008c39771eaff88193b1bf62e4
BLAKE2b-256 5c7c5d7251943c760777058e0d279a7d6312e0701e97483dbd3c22b604b10c0e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for beprint-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b0a502ec6d2534266b5a42da34107d21ca509359d493420a729bc71028a03932
MD5 eeab1546cb09d3b4b0bde95bdee185b2
BLAKE2b-256 eafb586dc4dbdefd1eae126c1fc87fb4731d0ee2828de400059b425926e6cfaa

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