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

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

overprint-0.0.2-py2.py3-none-any.whl (2.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file overprint-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for overprint-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b84df2e2849ad2d1d2e00e992ba701ee524011ec61d038ec4f1099d809017c62
MD5 c39526d89c9a4b5376da022af7179257
BLAKE2b-256 8ad7caeda34d826aa2801cb4374373bceb52c57ca07ae944e26fb340eaaf7a7c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page