termwriter-py
Organize your terminal output
Motivation
Dumping a ton of information to the terminal using print() can cause the data
you want to see on the screen to scroll up, away from the visible terminal
area. This can be particularly frustrating because today's monitors have a lot
more horizontal screen space but the data scrolls away vertically. What if
print() can better organize the output to maximize the screen real estate?
Example
See example.py for an example code. Below is its output.
================================ Example Output =================================
Some description goes here.
-------- My First Box -------- ----------------- My Second Box ------------------
This is a text box. This is another text box.
You can have a second line
and it stays in the second box.
--------------- My Third Box ---------------- ---------- My Fourth Box ----------
This box is to the right of the second box. This box stretches to fit the row
Unless you have a narrow screen -- because we draw SoftBreak()
then the box wraps to the next row
------- My Fifth Box -------- ------ My Sixth Box ------ ---- My First Table ----
Notice the rows are jusified. You can also have tables. # First Name Last Name
--- ---------- ---------
1 John Doe
10 Jane Doe
100 John Public
----- My Eighth Box -----
You can also nest boxes.
Below is a table box.
Name: John Q. Public
Tel: +1 111 555 3333
Email: nobody@nowhere.com
Documentation
See [documentation].
License
[documentation]: https://github.com/markuskimius/termwriter-py/blob/master/doc/README.md
Metadata
Release files for termwriter 1.0.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 | |
|---|---|---|---|---|
| termwriter-1.0.0.tar.gz | 11.2 kB | Without provenance | Details |
Release files / termwriter-1.0.0.tar.gz
| Download URL | termwriter-1.0.0.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c36ca730c24fe305bdf6b71a2ac48913c79cf203760f76e1c9c7c744758ce56
|
|
BLAKE2b-256 checksum How to use checksums |
f617a041f1ffad9129e6b5e1c2c85c4c7ba8a3eefbfceb3fd8a534144790abbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.9
|
Security for termwriter 1.0.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.