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 five 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.
  • inkling-loader on npm, the Node addon. npm install inkling-loader.
  • inkling-wasm on npm, the WebAssembly build for the browser.

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.5.tar.gz (36.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.5-cp38-abi3-win_amd64.whl (203.4 kB view details)

Uploaded CPython 3.8+Windows x86-64

inkling_loader-0.1.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (368.9 kB view details)

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

inkling_loader-0.1.5-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.5.tar.gz.

File metadata

  • Download URL: inkling_loader-0.1.5.tar.gz
  • Upload date:
  • Size: 36.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.5.tar.gz
Algorithm Hash digest
SHA256 777877d8ddffb5a2e387c1c4197533c7872165318858773b5743c21736cf99f1
MD5 aff5b9ec6c6e990c1f72cb021b2d3969
BLAKE2b-256 9979dd50137c8dfae2a1abe43d033a389b69bf23140a87b9b203e7efafcd28fa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for inkling_loader-0.1.5-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 67307325e4da124809dbae6fac66d9a626b1faf962bae7ddb48338ec4012988f
MD5 026d301b54ecab5729a273df948f4287
BLAKE2b-256 27256845a7056a63174ed5281b6bc05d0cd5cfc7825445ce0850cab057dd042c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for inkling_loader-0.1.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d5ce9afb6b57ed4a88d527b42c9a3d422181bc8b78334b5e2860899340678022
MD5 9d23a27f0a88b238ec340e49f86037a7
BLAKE2b-256 3393bd6718908ee568938c32490648d50bffcf1fc709622499a5611f2cf1a2f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for inkling_loader-0.1.5-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2c2a9217196b413c580b47bba0e4ba057161de71949f63bebf6d9a7732effe3
MD5 c17c8a47e7fb9f6b3a42f7ceb249526c
BLAKE2b-256 c71bbd3f25655a62192aca64ab5a6074ad7cc352aa89f69f595ee9d83f657860

See more details on using hashes here.

Provenance

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