Skip to main content

Lightweight task progress tracking with pluggable storage backends

Project description

progressorx

progressor — lightweight progress-tracking package for long-running tasks.

Features:

  • report_progress(task_id, progress=None, increase=None) — set or increment progress (0..100).
  • get_progress(task_id) — get current progress and status.
  • Pluggable backends: InMemory, Redis, SQLAlchemy (SQLite/Postgres).
  • Thread/process/distributed safe when using a proper backend (Redis/SQL).

Quick example

from progressorx import ProgressManager
from progressorx.backends.memory import InMemoryStore


store = InMemoryStore()
mgr = ProgressManager(store)


mgr.report_progress('task-1', progress=10)
mgr.report_progress('task-1', increase=5)
print(mgr.get_progress('task-1')) # {'task_id': 'task-1', 'progress': 15, 'status': 'in_progress'}

See examples/fastapi_example.py for how to integrate with FastAPI.

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

progressorx-0.0.2.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

progressorx-0.0.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file progressorx-0.0.2.tar.gz.

File metadata

  • Download URL: progressorx-0.0.2.tar.gz
  • Upload date:
  • Size: 41.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for progressorx-0.0.2.tar.gz
Algorithm Hash digest
SHA256 80829c027a594b74f7aa3f7d213c07b32a2f4f0b4fefdb53d95fd9207e4eb623
MD5 f594a3e52d6e0b6f8a88f9e03584271b
BLAKE2b-256 6581614e6d0626ad3a072224f61d648d68a8fba1f3a48e49bb60fc58e059683a

See more details on using hashes here.

File details

Details for the file progressorx-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: progressorx-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for progressorx-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 70ef4cdd8f159c15da2a31e7ab5190dc2c986e4531078cf702c523a91fb8272d
MD5 e92e2163f8145e5ad0d4712d7551fe2e
BLAKE2b-256 a86e052f74f1e0933fb634449584cb3977f6edaf7e322b7de6db7190533cb813

See more details on using hashes here.

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