New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

aseity

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Malware was recently detected in this package.

Affected versions:

0.1.0

aseity

A self-contained task orchestration toolkit (queue, scheduler, worker pool, retry)

pipPyPI
Version
0.1.0
Weekly downloads
8
-20%
Maintainers
1
Weekly downloads
 
Created

aseity

A self-contained task orchestration toolkit. Zero runtime dependencies.

Features

  • TaskQueue — thread-safe priority queue with optional bound.
  • Scheduler — repeating-task scheduler on a background thread.
  • WorkerPool — thin ThreadPoolExecutor wrapper with graceful shutdown.
  • retry — exponential backoff with jitter.
  • TokenBucket — thread-safe rate limiter.
  • Pipeline — linear task composition.
  • Config — JSON config loading with defaults and type validation.
  • serialization / utils — JSON helpers and slug/chunk/idempotency utilities.

Install

pip install aseity

Quick start

from aseity import TaskQueue, WorkerPool, retry

q = TaskQueue(maxsize=100)
q.put(1, "high-priority")
q.put(5, "low-priority")

assert q.get() == "high-priority"

@retry(tries=3, backoff=0.5)
def flaky():
    raise ConnectionError("boom")

with WorkerPool(workers=4) as pool:
    fut = pool.submit(pow, 2, 16)
    assert fut.result() == 65536

CLI

aseity --version
aseity run --config config.json
aseity validate-config config.json

License

MIT

Keywords

task

FAQs

Related posts