yappt
Yet another pretty printer for tables and trees.
Note: Versions 0.3.0 and later aren't compatible with earlier versions
A collection of classes and functions to format textual data for printing. The main functions (tabulate and treeiter) do not require reading entire dataset into memory, allowing printing large amount of data in streaming fashion.
| Class | Capabilities |
|---|---|
PrettyInt |
When formatted, returns human-readable value. It can either show K,M,G suffix or exponential notation |
Duration |
When formatted, returns a value that shows duration in hours, minutes and seconds. |
| Function | Capabilities |
|---|---|
tabulate |
Pretty prints an iterable of either dataclass objects or iterable of sequences of strings as a table |
tabulate_iter |
Like tabulate but returns an iterable over formatted lines of text instead of printing it |
treeiter |
Returns an iterable over tuples of formatted representation of tree node and the original node |
strip_pfx |
strips a common prefix from all substrings that are separated by new-lines |
indent |
indents all substrings that are separated by new-lines |
iter_more |
accepts an iterable and returns a new iterable that returns original item and a more items indicator |
format_bool |
format boolean values as unicode "✓" and "✗" code points |
Refer to tests/ folder for examples and usage
Metadata
Release files for yappt 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| yappt-0.3.2.tar.gz | 12.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yappt-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.7 kB
Release files / yappt-0.3.2.tar.gz
| Download URL | yappt-0.3.2.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57ad705621551df52766c6daec774509dee7be3d10d99f908a0775fbd309381f
|
|
BLAKE2b-256 checksum How to use checksums |
6ae65d96c85a4b4ff101e36528b261e735197d0d8f616f389edf66720b79a506
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|
Release files / yappt-0.3.2-py3-none-any.whl
| Download URL | yappt-0.3.2-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
534c724debd7903ea4ef24c3ad70a578ad771e6b063472cbc65f19f34e1453e2
|
|
BLAKE2b-256 checksum How to use checksums |
7d461bdd7759894dd1d2d65433e0092359d4b274d9af7f509fb0e348ce4c8288
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|
Security for yappt 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.