:sparkles: prettyalgo
Pretty print for programming puzzles.
Highlights:
- Pretty print data structures and algorithms, especially sequence-oriented ones involving arrays such as lists, tuples and strs, and iterations, in the vein of leetcode and similar programming puzzles.
- Extensive configurability for various display styles and usage modes, such as console-interactive, animated, and more.
- Extensive use of pre-commit hooks and unit-tests coverage to ensure correct functionality. Programming puzzles are hard enough to solve and debug, we shouldn't make it more error-prone by trying to use this library!
Getting Started
To install from PyPI, use pip:
pip install prettyalgo
See the examples sub-directory for examples showing the usage of the library.
Typical output when using on the terminal in interactive mode would like:
Remove Duplicates From Sorted Array 2
-------------------------------------
len(lst): 9
i 6
j 4
count 4
+-----------------------------------------------------------------------------------------+
| | | | | | | | | |
| 0 | 0 | 1 | 1 | 1 | 1 | 2 | 3 | 3 |
| | | | | | | | | |
+-----------------------------------------------------------------------------------------+
^ i=6
^ j=4
Press Enter to continue...
Metadata
Release files for prettyalgo 0.0.3
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 | |
|---|---|---|---|---|
| prettyalgo-0.0.3.tar.gz | 8.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prettyalgo-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / prettyalgo-0.0.3.tar.gz
| Download URL | prettyalgo-0.0.3.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d14ee4711c8bef035e793effac4d9c99aebd6577568d401403d6af8b7c7bbcc1
|
|
BLAKE2b-256 checksum How to use checksums |
7b3d30d0815080ba7a671657965b1cd4e27c177e87c8925e7e5705a33dfb97ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Release files / prettyalgo-0.0.3-py3-none-any.whl
| Download URL | prettyalgo-0.0.3-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4019f9247dcea341f083d2535e043756b8b26cc13834286181bf980cc1fe2439
|
|
BLAKE2b-256 checksum How to use checksums |
95c6f219095c57da4842e20224c74725955fa29a55021f505b52d49f31ef02ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Security for prettyalgo 0.0.3
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.