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
alignfunction. You can also use thealign_center,align_left,align_right, andalign_stretchfunctions 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_codefunction. This feature is powered by thepygmentslibrary. - Columns Layout - The package can print messages in columns using the
columnsfunction. - Markdown Preview - The package can preview markdown messages using the
parse_markdownfunction. This feature is powered by themistunelibrary. - Printing Objects - The package can print objects with colors and styles using the
beprintorbpfunction. - Table - The package can print messages in tables using the
Tableclass. 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7dd446601c97466f63823e2d052f104e6252a6f78b7086385c8bebdd19eaadc
|
|
| MD5 |
279ef1008c39771eaff88193b1bf62e4
|
|
| BLAKE2b-256 |
5c7c5d7251943c760777058e0d279a7d6312e0701e97483dbd3c22b604b10c0e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0a502ec6d2534266b5a42da34107d21ca509359d493420a729bc71028a03932
|
|
| MD5 |
eeab1546cb09d3b4b0bde95bdee185b2
|
|
| BLAKE2b-256 |
eafb586dc4dbdefd1eae126c1fc87fb4731d0ee2828de400059b425926e6cfaa
|