Wraps text without breaking words.
Project description
pytextwrap
Wraps your text files to a given width, without breaking words.
It reads a text file, and wraps all text in it to a line width of 72 characters.
I use it to format AoC problems to python docstrings for my solutions repo.
I also use it for Daily Byte.
Installation
pip install pytextwrap
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
pytextwrap-1.0.0.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for pytextwrap-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6cc50a31383744180ddd50d504ca38a0494cf10e31e5475f97dd28a93ed5704 |
|
MD5 | a1e4af47b9d22f510248955232cfaa64 |
|
BLAKE2b-256 | bf096d57f2689ec2f617f648d2c397ef81419cc8dd42b6bec23f6c48c816745c |