Utility to help rewrite previous line of text,
Usefull and keep user informed of advancement, and keep a reactive command line interface
import time
from overprint import overprint
with overprint() as (reprint, print):
print('step 1')
for i in range(10):
reprint('.'* ( i % 3 +1))
time.sleep(0.5)
# will display 3 animated dots
The reprinted line will keep moving down while you use the normal print statement which does not change normal programming flow.
overprint even provide you with an option to replace (temporarily) the built-in print statement in case you do not control the underlying libraries.
use python -m overprint for a demo
Metadata
Release files for overprint 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| overprint-0.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / overprint-0.0.2-py2.py3-none-any.whl
| Download URL | overprint-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b84df2e2849ad2d1d2e00e992ba701ee524011ec61d038ec4f1099d809017c62
|
|
BLAKE2b-256 checksum How to use checksums |
8ad7caeda34d826aa2801cb4374373bceb52c57ca07ae944e26fb340eaaf7a7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for overprint 0.0.2
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.