Skip to main content

multicarriage

PyPI - Version Pepy Total Downlods PyPI - Python Version GitHub repo size

A Python module designed for writing and updating text on multiple lines using the the carriage return.

multicarriage-preview

Usage

Previewing Package

$ python3 -m multicarriage.demo

Importing Package

import multicarriage

Creating Newlines

Creating newlines prevents text from being overwritten.

multicarriage.MultiCarriage.create_newline(2)

Writing to Screen

multicarriage.MultiCarriage.write("first text", 2, clearline=True)
multicarriage.MultiCarriage.write("second text", 1, clearline=True)

Setting the clearline parameter to true will erase the current line of which the cursor is on, assuring there will be no overwritten text.

Example of Real Script Usage

Example script that will write and update 3 lines at once.

# example of auto updating epoch and datetime
import multicarriage
import time
import datetime

# creating newlines to avoid overwriting current text
multicarriage.MultiCarriage.create_newline(3)
while True:
    try:
        timestamp = time.time()
        date = datetime.datetime.fromtimestamp(timestamp)
        multicarriage.MultiCarriage.write(f"epoch: {timestamp}", 3, clearline=True, flushtxt=True)
        multicarriage.MultiCarriage.write(f"epoch (s): {timestamp//1}", 2, clearline=True, flushtxt=True)
        multicarriage.MultiCarriage.write(f"datetime string: {date}", 1, clearline=True, flushtxt=True)
        time.sleep(1/10)
    except KeyboardInterrupt:
        raise SystemExit(0)

Metadata

Release files for multicarriage 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for multicarriage 1.1
File Size Uploaded Provenance
multicarriage-1.1.tar.gz 3.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for multicarriage 1.1
File Interpreter ABI Platform
multicarriage-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / multicarriage-1.1.tar.gz

Download URL multicarriage-1.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c2a8f27e33669c3e7ac979c2acca2cc8daca6806843e7fbc0c6df0e06f43bf3c
BLAKE2b-256 checksum
How to use checksums
7de64b02d0c261d00061d90983661200bde2db63a65397c2499117d2d5e22fae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / multicarriage-1.1-py3-none-any.whl

Download URL multicarriage-1.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f1981388447fb27547b5f3a84772e36cf7918822c30e103b27fc387b2945f59
BLAKE2b-256 checksum
How to use checksums
cef78ff5fccd6a49d5eed4ea05d99cb5873ed09de93a780a4108f1c76f8eeffe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for multicarriage 1.1

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.

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page