Wraps text without breaking words.
Project description
textwrapper
Wraps your text files to a given width (defaults to 72), without breaking words.
I use it to format AoC problems to python docstrings for my solutions repo.
I also use it for Daily Byte.
Installation
pip install textwrapper
Usage
textwrap path/to/file
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
textwrapper-1.0.2.tar.gz
(2.9 kB
view details)
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 textwrapper-1.0.2.tar.gz.
File metadata
- Download URL: textwrapper-1.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1083bf881def7a046703ca1e82d6d1da33c4f4eb1de78814d4d56947fbd8874a
|
|
| MD5 |
5f52eba8f03cea25c8ae4bd782ccefbf
|
|
| BLAKE2b-256 |
43e1879d66d666336945045b24f60d332f521a2871f6508263f2450ec2bf350d
|
File details
Details for the file textwrapper-1.0.2-py3-none-any.whl.
File metadata
- Download URL: textwrapper-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86851d7d30701d5cd4f24c8e79d04424573f28d615c95fee67d18ea431d5bc6d
|
|
| MD5 |
4615c719fc8c71b5ec5bafd8ddea13ae
|
|
| BLAKE2b-256 |
5c1045131179eb1ffa5092a172b562e60a23aec5220dba5f55d669599dc44ff2
|