textwrapper
Installation
pip install texttool
Function signature
def wrap(
# the text to wrap
text,
# a line's minimum width before wrapping
min_width=1,
# the max width of lines. default is shell width
max_width=shutil.get_terminal_size().columns,
# number of columns to pad off of max_width
padding_size=0,
# a string to start all wrapped lines with
prefix='',
# a string to end all lines which wrap with
suffix='',
# string of characters, in priority order, to wrap on
delimiters=' ,.!',
):
Usage
import texttool
texttool.wrap('Lorem ipsum dolor sit amet.', max_width=6)
Hi
there,
nice
to
foo
your
bar.
Metadata
Release files for texttool 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 | Actions |
|---|---|---|---|---|
| texttool-0.0.3.tar.gz | 3.6 kB | Without provenance | Details for texttool-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| texttool-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for texttool-0.0.3-py3-none-any.whl |
Total release size: 7.7 kB
Release files / texttool-0.0.3.tar.gz
| Download URL | texttool-0.0.3.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9be1cde2e61502b3d8cce57114b35b710a885d43535bb00753aed021c4064cd3
|
|
BLAKE2b-256 checksum How to use checksums |
6e983a544224c5ab9f15d8b2921469f420c48c19cdfb74b2d2bdc616b0973644
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
|
Release files / texttool-0.0.3-py3-none-any.whl
| Download URL | texttool-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfc731360096aadeb90af8b907b85f34a11f8da12411b509f5051ab16056f8af
|
|
BLAKE2b-256 checksum How to use checksums |
595c2f2276983c329d784ffdda55fdd7b8a4e19aa5d03ce984d44fab6f473fc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
|
Security for texttool 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.