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.

The inkling family

This is the Python package. The same engine ships three ways:

  • inkling-loader on PyPI (this package), for Python. pip install inkling-loader, import as inkling.
  • inkling-loader on crates.io, the Rust library. cargo add inkling-loader.
  • inkling-cli, the inkling command, to drive a reveal from any language through a pipe. cargo install inkling-cli.

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.4.tar.gz (36.8 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.4-cp38-abi3-win_amd64.whl (203.2 kB view details)

Uploaded CPython 3.8+Windows x86-64

inkling_loader-0.1.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (368.8 kB view details)

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

inkling_loader-0.1.4-cp38-abi3-macosx_11_0_arm64.whl (318.0 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: inkling_loader-0.1.4.tar.gz
  • Upload date:
  • Size: 36.8 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.4.tar.gz
Algorithm Hash digest
SHA256 ec1769d0fcaec8a3571004d28a5359217a9b6a1af6cd47ee4f0524f2b6aef823
MD5 90f6b46413a8a7cec3d6009cf1f07eca
BLAKE2b-256 fbe7611fedb7f10108ffb71200de0d3c11d0a0b85c0cffe00eb42cb31540ce61

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for inkling_loader-0.1.4-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 26fe4bd55e564b8d3173480dc0db6792e7e513167f909c17a7dad5a105400d45
MD5 cc6a213845ce5d214163698d9e98007e
BLAKE2b-256 6daa562001facaaba7a0d8701a43262000b860d57e7506ad4e5d33803c6dfac3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for inkling_loader-0.1.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d7339089d631452fba95a86ddace9e5a1131256e7ad22d989072af34f1f7e1e7
MD5 83d8b78a1831f98d281eba801896febc
BLAKE2b-256 d8b7dab23bcfcc6b5430b6da8750fd8b1e37ae25c3c0cc00a3fd76a6883ee636

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for inkling_loader-0.1.4-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99e8dd1cffb9f295eec65acf9b6a6755b3635447d06e7887c1ffa56ce2d5995e
MD5 626b95f999199215d640b91b11c41541
BLAKE2b-256 abb4db959ef51d8e67f02db7bf67140f57bc8d2a2af235e568c34f6cfa9418e1

See more details on using hashes here.

Provenance

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