archiver-stats
Reusable live statistics and progress display for archiver-style CLIs.
Installation
pip install archiver-stats
Usage
Declare counters and optional free-form status lines, then drive a live Rich display from the
Stats instance:
import sys
from archiver_stats import Category, Stats, StatusDisplay, StatusLine
stats = Stats(
(Category('hits', 'Hits:'), Category('misses', 'Misses:')),
status_lines=(StatusLine('progress', 'Progress:', after='hits'),),
)
display = StatusDisplay(stats, stream=sys.stderr, initial_message='Working...')
display.start()
try:
stats.increment('hits')
stats['progress'] = 'https://example.com/1 (1/3)'
display.refresh()
finally:
display.stop()
Stats is a MutableMapping keyed by category or status-line key. Counter values are integers
(update with stats[key] = value or stats.increment(key, amount)), and status-line values are
str or None. Keys are fixed at construction time and the mapping does not support deletion.
StatusDisplay wraps a Rich Live display: call start() and stop() around your work,
refresh() to re-render after updating counters, set_message() to change the spinner text, and
write() to print a persistent line above the live region.
Metadata
Release files for archiver-stats 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| archiver_stats-0.0.1.tar.gz | 10.2 kB | With provenance | Details for archiver_stats-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| archiver_stats-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for archiver_stats-0.0.1-py3-none-any.whl |
Total release size: 18.3 kB
Release files / archiver_stats-0.0.1.tar.gz
| Download URL | archiver_stats-0.0.1.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abd393d86c62f10c1c7ec6a7baae83cb078dac372348a89506aebef89f3359fd
|
|
BLAKE2b-256 checksum How to use checksums |
4495925156ac4a72b7a01f378acad2eeaf7deed7a3d55090e752a4b7eb58786d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 17, 2026.
Transparency logRelease files / archiver_stats-0.0.1-py3-none-any.whl
| Download URL | archiver_stats-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be9df65fdb71667970464132901c2d51180804d95405d4aac9558ff3cf324fd4
|
|
BLAKE2b-256 checksum How to use checksums |
72f1919ef4b3a15afc9c0286e0fe7f71c584712a2289654da70be542ba0f5857
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 17, 2026.
Transparency logSecurity for archiver-stats 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for archiver_stats-0.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.