Skip to main content

Reveal ASCII art as a progress indicator.

Project description

inkling (Python)

Reveal ASCII art as a progress indicator, from Python. Same engine as the Rust crate, exposed as a tiny extension built with PyO3. It installs as inkling-loader and imports as inkling.

inkling

pip install inkling-loader

Determinate, like tqdm but the bar is a drawing:

from inkling import Loader

with Loader(total=len(items), rainbow=True) as bar:
    for it in items:
        work(it)
        bar.inc()

A download, setting the position as bytes arrive:

bar = Loader(total=content_length, art_path="dragon.txt")
for chunk in response:
    file.write(chunk)
    bar.inc(len(chunk))
bar.finish()
Method Effect
inc(delta=1) advance the position
set(pos) set the absolute position
set_length(total) change the total
set_message(text) caption beneath the art
finish() / finish_and_clear() finish, keeping or erasing the art

Constructor keywords: total, art, art_path, rainbow, geodesic, reading, message.

Building from source

pip install maturin
maturin develop            # build and install into the current venv
maturin build --release    # produce a wheel in target/wheels

Built from the inkling Rust core. License: MIT.

Project details


Download files

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

Source Distribution

inkling_loader-0.1.1.tar.gz (31.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

inkling_loader-0.1.1-cp38-abi3-win_amd64.whl (184.7 kB view details)

Uploaded CPython 3.8+Windows x86-64

inkling_loader-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (349.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

inkling_loader-0.1.1-cp38-abi3-macosx_11_0_arm64.whl (299.4 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

Details for the file inkling_loader-0.1.1.tar.gz.

File metadata

  • Download URL: inkling_loader-0.1.1.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for inkling_loader-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f554833ec04a09a071293df4b84bfc84bf811609992e54d70cc86742446935b2
MD5 d3e27b664738767b9440ea1efdde5cd8
BLAKE2b-256 fb524d190f7b366535925f4b08b11aec6e82437ca0d642fe25282d0e85d6589b

See more details on using hashes here.

Provenance

The following attestation bundles were made for inkling_loader-0.1.1.tar.gz:

Publisher: wheels.yml on codizzler/inkling

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file inkling_loader-0.1.1-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for inkling_loader-0.1.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 02f97219f234c396413bf31628f17749ebcd7fc8c378f89578bd82a4d3259983
MD5 09987f4e8f2aea33a67c396dcbbf32e2
BLAKE2b-256 b25326c49e3dd740ef2a02a1b27dace58723912400ae661f4a1f6b187696423b

See more details on using hashes here.

Provenance

The following attestation bundles were made for inkling_loader-0.1.1-cp38-abi3-win_amd64.whl:

Publisher: wheels.yml on codizzler/inkling

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file inkling_loader-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for inkling_loader-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 883fac9103a013bb6b34f1852c619e5cf5e95c4b3f26aa6bb2ef5d82951bf621
MD5 d822897b297c4cd7ca621db22cd6eb1d
BLAKE2b-256 477a1454038f52f3af867f00884d77d1068619505a5d06e62204e9ea3281000b

See more details on using hashes here.

Provenance

The following attestation bundles were made for inkling_loader-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on codizzler/inkling

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file inkling_loader-0.1.1-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for inkling_loader-0.1.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7329a5f21b9b33c90e8847bfed160e4be11f5b621409e823cb3b04df86ab6000
MD5 48b238c3d61d00227adfbcae7adbc57b
BLAKE2b-256 541ff6fc95d8ee0640c917cc2af2c399bca3ef6639bd65a451a7ed7ba1d7a4d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for inkling_loader-0.1.1-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: wheels.yml on codizzler/inkling

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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