A library for wrapping text
Project description
This is a python library for breaking and wrapping text.
The library provides three functions, wrap, chunk, and break_lines.
chunk breaks a string once, using whitespace, existing hyphens or soft
hyphens, or by forcing a hyphen at a given maximum width, returning the head and
the tail (as a tuple[str, str], with the second slot of the tuple potentially
being an empty string).
break_lines breaks a string into lines of a given maximum width, returning
the resulting lines as a list[str].
wrap wraps a text.
Install
pip install tamal
Documentation
Project details
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 tamal-0.2.0.tar.gz.
File metadata
- Download URL: tamal-0.2.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-49-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
771f5ca9a7bbffe6b5539bc5c5b8f6ec0637ff7a189eb2d88cc5e387d0ea00e4
|
|
| MD5 |
dddb29e0be8e05b8cf81b0215e624c68
|
|
| BLAKE2b-256 |
cc9e4e3e1604f7999f676733ab0986be81a4889f6c73a1db980552279f671043
|
File details
Details for the file tamal-0.2.0-py3-none-any.whl.
File metadata
- Download URL: tamal-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-49-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7476e95743bcd1590839b734a190d25f2dd0dbaf2a1018bc77e1222b6837b543
|
|
| MD5 |
16da84fa48bfc5400b482d17b4201dc6
|
|
| BLAKE2b-256 |
327b26b2041a6abde0ff0fcb687006505907cd929bab398f21803b7393e1b482
|