PyLineBreak
PyLineBreak is a small utility that breaks very long lines into smaller ones. More specifically, it limits a line to 80 characters in length and will ‘fix’ text files that do not conform to that limitation. This allows for easier reading in terminal shells or a TTY console.:
---------- ON *NIX ---------- $ pylinebreak OR $ python /path/to/pyimgsort.py path/to/file ----------- ON WINDOWS: ----------- Open a command prompt and type: C:\path\to\python.exe C:\path\to\pylinebreak.py C:\path\to\file OR C:\path\to\python.exe C:\path\to\pyimgsort.py
Requirements:
Python 2.6 or later
Installation:
In GNU/Linux: Unpack the tarball, open a terminal, navigate to the directory into which you unpacked the tarball, and type (as admin, i.e., “su” or “sudo”) python setup.py install
In Windows, just run the .exe as normal. The script will be installed to C:\Pythondir\Lib\site-packages
Notes
This program will format text files to fit inside an 80-character margin. Chances are, if you edit inside a GUI text editor (or copy/paste into one), the lines won’t be broken the same way they are with programs like Emacs or Vim. Consequently, they can be unpleasant to edit or read inside a shell or TTY terminal.
This program alleviates the problem somewhat. There will be a few short lines every here and there, but the resultant file is still quite a lot easier to deal with than before.
By default, the program creates backups in the same directory and sets the margin at 80 characters. You can change these settings by editing their values near the top of the source file (pylinebreak.py).
License
GPL version 3. See LICENSE.txt for more info.
Metadata
Release files for PyLineBreak 0.1.0
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 |
|---|---|---|---|---|
| PyLineBreak-0.1.0.tar.gz | 3.7 kB | Without provenance | Details for PyLineBreak-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyLineBreak-0.1.0.linux-x86_64.exe | Details for PyLineBreak-0.1.0.linux-x86_64.exe |
Total release size: 71.6 kB
Release files / PyLineBreak-0.1.0.tar.gz
| Download URL | PyLineBreak-0.1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41372fc366913b4889a429f8ba740bc1cd3acbbb4269ab505c3494683dd23e87
|
|
BLAKE2b-256 checksum How to use checksums |
612c8b1769f1e87297b3216333a8eca3825e7226e77c38765babb8ea5e0a2d6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / PyLineBreak-0.1.0.linux-x86_64.exe
| Download URL | PyLineBreak-0.1.0.linux-x86_64.exe |
|---|---|
| Size | 67.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3db705e241ff1dcbe6ad3665852547a51cffeb5929778f66b215f29416d25535
|
|
BLAKE2b-256 checksum How to use checksums |
ce670326b3c49bfb41c0a1b1f5e2024b828c639c94d20a3fe031dbf8487da96c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for PyLineBreak 0.1.0
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.