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.

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.0.1.tar.gz (30.7 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.0.1-cp38-abi3-win_amd64.whl (184.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

inkling_loader-0.0.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.0.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.0.1.tar.gz.

File metadata

  • Download URL: inkling_loader-0.0.1.tar.gz
  • Upload date:
  • Size: 30.7 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.0.1.tar.gz
Algorithm Hash digest
SHA256 80b2b934c6cbfb5a4e5699462d085b8340207f6fd0b4d55c038316fc5d8b4ffc
MD5 3468095774253d9c55fa1b5129cd80c4
BLAKE2b-256 79754ecb0ab09f1ec3a4cfd6736ddcc0834dcbb0c231ba74322193a3650a5e9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for inkling_loader-0.0.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 42c57ceb256bad8da7fa70ad5b221cc076d30944dcf5977af08f308b4f6d540f
MD5 4be7caaedc227299f6a533105b8f3944
BLAKE2b-256 68345c56e3c7bfd07dfae9e103d4d026730a2ee82555e7b864e93ff42d1670f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for inkling_loader-0.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4c28c7054aef4dd07b51ae5031b271088b78f14873c85be7d2c72a5a73592559
MD5 f0c9be400edd55d045ed5714fb6f8751
BLAKE2b-256 21f9332600a73053494029e4f9f3dc4670db7af477e3c44d9764e3891d542c7b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for inkling_loader-0.0.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21f2d043ad1fd7b70b1144f714908713b6fb5b9fedad1a3d1d1ea9e3790e07c3
MD5 6256ee8fb793b7912033548b8bc6f871
BLAKE2b-256 b543d42f303a00f7ae1c7e607e8ea279d5eb909eb4bd65c9de2b827a8e6b8fb9

See more details on using hashes here.

Provenance

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