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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f554833ec04a09a071293df4b84bfc84bf811609992e54d70cc86742446935b2
|
|
| MD5 |
d3e27b664738767b9440ea1efdde5cd8
|
|
| BLAKE2b-256 |
fb524d190f7b366535925f4b08b11aec6e82437ca0d642fe25282d0e85d6589b
|
Provenance
The following attestation bundles were made for inkling_loader-0.1.1.tar.gz:
Publisher:
wheels.yml on codizzler/inkling
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inkling_loader-0.1.1.tar.gz -
Subject digest:
f554833ec04a09a071293df4b84bfc84bf811609992e54d70cc86742446935b2 - Sigstore transparency entry: 1771193325
- Sigstore integration time:
-
Permalink:
codizzler/inkling@6e3f82b5a836e551fbd262a7f6e8c2464cd46edb -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/codizzler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@6e3f82b5a836e551fbd262a7f6e8c2464cd46edb -
Trigger Event:
push
-
Statement type:
File details
Details for the file inkling_loader-0.1.1-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: inkling_loader-0.1.1-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 184.7 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02f97219f234c396413bf31628f17749ebcd7fc8c378f89578bd82a4d3259983
|
|
| MD5 |
09987f4e8f2aea33a67c396dcbbf32e2
|
|
| BLAKE2b-256 |
b25326c49e3dd740ef2a02a1b27dace58723912400ae661f4a1f6b187696423b
|
Provenance
The following attestation bundles were made for inkling_loader-0.1.1-cp38-abi3-win_amd64.whl:
Publisher:
wheels.yml on codizzler/inkling
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inkling_loader-0.1.1-cp38-abi3-win_amd64.whl -
Subject digest:
02f97219f234c396413bf31628f17749ebcd7fc8c378f89578bd82a4d3259983 - Sigstore transparency entry: 1771193572
- Sigstore integration time:
-
Permalink:
codizzler/inkling@6e3f82b5a836e551fbd262a7f6e8c2464cd46edb -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/codizzler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@6e3f82b5a836e551fbd262a7f6e8c2464cd46edb -
Trigger Event:
push
-
Statement type:
File details
Details for the file inkling_loader-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: inkling_loader-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 349.4 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
883fac9103a013bb6b34f1852c619e5cf5e95c4b3f26aa6bb2ef5d82951bf621
|
|
| MD5 |
d822897b297c4cd7ca621db22cd6eb1d
|
|
| BLAKE2b-256 |
477a1454038f52f3af867f00884d77d1068619505a5d06e62204e9ea3281000b
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inkling_loader-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
883fac9103a013bb6b34f1852c619e5cf5e95c4b3f26aa6bb2ef5d82951bf621 - Sigstore transparency entry: 1771193687
- Sigstore integration time:
-
Permalink:
codizzler/inkling@6e3f82b5a836e551fbd262a7f6e8c2464cd46edb -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/codizzler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@6e3f82b5a836e551fbd262a7f6e8c2464cd46edb -
Trigger Event:
push
-
Statement type:
File details
Details for the file inkling_loader-0.1.1-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: inkling_loader-0.1.1-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 299.4 kB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7329a5f21b9b33c90e8847bfed160e4be11f5b621409e823cb3b04df86ab6000
|
|
| MD5 |
48b238c3d61d00227adfbcae7adbc57b
|
|
| BLAKE2b-256 |
541ff6fc95d8ee0640c917cc2af2c399bca3ef6639bd65a451a7ed7ba1d7a4d2
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inkling_loader-0.1.1-cp38-abi3-macosx_11_0_arm64.whl -
Subject digest:
7329a5f21b9b33c90e8847bfed160e4be11f5b621409e823cb3b04df86ab6000 - Sigstore transparency entry: 1771193448
- Sigstore integration time:
-
Permalink:
codizzler/inkling@6e3f82b5a836e551fbd262a7f6e8c2464cd46edb -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/codizzler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@6e3f82b5a836e551fbd262a7f6e8c2464cd46edb -
Trigger Event:
push
-
Statement type: