Skip to main content

Group-only runtime core for scheduling, lifecycle, events, and cache primitives

Project description

acty-core

acty-core is the low-level runtime package behind the Acty ecosystem. It provides the scheduler, lifecycle controller, event bus, cache primitives, and lightweight demo executors without the higher-level TUI API.

Install

pip install acty-core

For local development:

pip install -e .[dev]

Example

Run the headless group demo:

python examples/group_headless.py --groups 3

Run the scheduler-only demo:

python examples/scheduler_headless.py --groups 3

Write JSONL events that can be inspected later:

python examples/scheduler_jsonl.py --event-jsonl /tmp/acty_events.jsonl

What It Includes

  • GroupLifecycleController for primer/follower orchestration
  • WorkStealingScheduler and pool configuration
  • event bus primitives and JSONL-friendly event emission
  • cache registry and cache-handle propagation support
  • development executors such as NoopExecutor, EchoExecutor, and SimulatedExecutor

Logging

acty-core uses structlog. For readable local logs and rich tracebacks:

from acty_core import configure_logging

configure_logging(handler="rich", show_locals=True)

Cache Behavior

When a group uses a cache registry, the lifecycle attaches the resolved cache handle to queued jobs as job.cache_handle. Executors can reuse provider metadata from the cache handle instead of creating duplicate cache entries.

Development

  • tests live under tests/
  • example programs live under examples/
  • the package is intentionally usable without the higher-level acty TUI layer

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

acty_core-0.1.0.tar.gz (110.8 kB view details)

Uploaded Source

Built Distribution

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

acty_core-0.1.0-py3-none-any.whl (86.2 kB view details)

Uploaded Python 3

File details

Details for the file acty_core-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for acty_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0f0a6657f3118bc02824f101f5aaa01166e691c45ed0ce48888c03475fed7f48
MD5 c4f138fd0a08cd8987660941917e4403
BLAKE2b-256 a58bce4b9c5ffb56a711bbfb67c63efb3a496c4c4fa02dd7f7a07b44f02d59d1

See more details on using hashes here.

File details

Details for the file acty_core-0.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for acty_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18dcf4a966d2561cfb48059dada6665f461932a469f49787078569e8f113a0c3
MD5 bcebe9eed69ef9116b5e6f6c52fdbc4d
BLAKE2b-256 c46eaef6a75b37ab114f989529d37b94527a551225a2a159938aaa93389bbbee

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