PyParagraph
Knuth Plass line-breaking for Python, with PIL rendering
This package is an attempt to make it easy to render paragraphs to a PIL Image in Python, with excellent line-breaking via the Knuth-Plass algorithm. This algorithm is used by TeX and LaTeX, and is commonly called the TeX line-breaking algorithm or the LaTeX line-breaking algorithm). A simple greedy wrapping algorithm is available as a fallback. Console/text output is supported as well as PIL output.
Installation
pip install pyparagraph
Note that a relatively recent (as of December 2022) version of setuptools is required: pip install --upgrade setuptools if you get errors during the install, then try again.
Usage & References
See the gitlab home page for documentation.
License
This software is licensed under the MIT License. Copyright (c) 2022, G. Sumner Hayes.
See the LICENSE.txt for full details.
Metadata
Release files for pyparagraph 0.0.7
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 | Actions |
|---|---|---|---|---|
| pyparagraph-0.0.7.tar.gz | 20.6 kB | Without provenance | Details for pyparagraph-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyparagraph-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for pyparagraph-0.0.7-py3-none-any.whl |
Total release size: 37.4 kB
Release files / pyparagraph-0.0.7.tar.gz
| Download URL | pyparagraph-0.0.7.tar.gz |
|---|---|
| Size | 20.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e954c5adc8dff1f174076d0a69c2f7a90e72c9d6b10e0b8c295b9831d4a837ac
|
|
BLAKE2b-256 checksum How to use checksums |
7c9613a74418d83cfa5bf8c8fa838fc2ab7a7e5055fe1b9042f670eda943a8d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / pyparagraph-0.0.7-py3-none-any.whl
| Download URL | pyparagraph-0.0.7-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06e6a4af0e8b49d3119c0639cdec1ada8a10bf3055e0f9ca79cf50f531f62f74
|
|
BLAKE2b-256 checksum How to use checksums |
4eb47eacb70c2dd834dcbb1e6409f473d0f14270390adb1742b3ce4146ba9f53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for pyparagraph 0.0.7
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.