Skip to main content

Simple nicer command line interface to easily rewrite the previous line of text.

Project description

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))

# 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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for overprint, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size overprint-0.0.2-py2.py3-none-any.whl (2.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page