temprint
temprint is an acronym for temporary print
This package provides an easy way to output temporary prints intended to be overwritten by other messages. Use it if you want to avoid flooding your terminal with old prints.
Usage
Install it with $ pip install temprint
Now you can use the temprint function, as in:
from time import sleep
from temprint import temprint
msgs = [
'a short message',
'a slightly longer message',
'a tiny msg',
'a very big message. it is so big that it cannot fit in your ' +
'terminal width and temprint will behave as a regular print',
'now a short message again',
'and a shorter message'
]
for msg in msgs:
temprint(msg)
sleep(2)
You should see the messages being printed and then erased iteratively.
If the message is longer than your terminal width, temprint will behave as the regular built-in print function.
The temprint function can receive a series of objects to be printed and a separator:
>>> temprint('first', 'second', 'third', sep='/')
first/second/third
Metadata
Release files for temprint 1.0.3
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 |
|---|---|---|---|---|
| temprint-1.0.3.tar.gz | 2.6 kB | Without provenance | Details for temprint-1.0.3.tar.gz |
Release files / temprint-1.0.3.tar.gz
| Download URL | temprint-1.0.3.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
119d7df90d04cbfe030c2d9de730f486a73b52caa727c7de70181cc3944f3c03
|
|
BLAKE2b-256 checksum How to use checksums |
b6be7bc01416ce47612069cbf5ff6f4d3c523ef8c4420a5893560e288f3981cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0
|
Security for temprint 1.0.3
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.