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.2.tar.gz (32.9 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.2-cp38-abi3-win_amd64.whl (185.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

inkling_loader-0.1.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (349.9 kB view details)

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

inkling_loader-0.1.2-cp38-abi3-macosx_11_0_arm64.whl (300.3 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: inkling_loader-0.1.2.tar.gz
  • Upload date:
  • Size: 32.9 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.2.tar.gz
Algorithm Hash digest
SHA256 134f1cab1dcdb9d3937732c12a99d8e569bcd7f546b19ff81353863b470ef0ba
MD5 aca80a2947a25c20c0d18eae393b506e
BLAKE2b-256 2c8a657f478af2a640e64a74de35962895fdb8b4d06ec06a4c2db3009c5a388b

See more details on using hashes here.

Provenance

The following attestation bundles were made for inkling_loader-0.1.2.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.2-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for inkling_loader-0.1.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 330ff62a4a4a56ea4154e4478ac85c8f30a47483111b251e2629514eca2297ea
MD5 1569cf2c38bb711df0b6acf2d1c0ddf7
BLAKE2b-256 76575af3a1f3f2a4c3f86c7791c7e6ccac41e7b4ea4ae0a051926ea648a04f78

See more details on using hashes here.

Provenance

The following attestation bundles were made for inkling_loader-0.1.2-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.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for inkling_loader-0.1.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4103113e2fc62592ec89f2d81952a8f881f1755d42293e6fd30e891b2b573f8e
MD5 e8298f0f828079e9bcc8369d7a307ce9
BLAKE2b-256 daadeffaf8930d950259d78ef25aea7de934f43e48666cdb577c3d24dc156667

See more details on using hashes here.

Provenance

The following attestation bundles were made for inkling_loader-0.1.2-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.2-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for inkling_loader-0.1.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c2805bfd78f1122db834cc0bb910f8015a2805a3c080f0a56dd9f58cb313416
MD5 93279b8cc077b359c6bc6588c62c901a
BLAKE2b-256 8f2a7324c154cd6ed4446476571cf73413bdb16474c316503e831f63f330dcf9

See more details on using hashes here.

Provenance

The following attestation bundles were made for inkling_loader-0.1.2-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