Acyro
English | 简体中文
A small, local, Python-native DAG task runner with deterministic execution and content-aware JSON caching.
Install
pip install acyro
Requires Python 3.12 or newer.
Quick start
from pathlib import Path
from acyro import run, task
@task(inputs=["data/*.txt"], outputs=["build/combined.txt"])
def combine() -> None:
Path("build").mkdir(exist_ok=True)
content = "\n".join(path.read_text() for path in Path("data").glob("*.txt"))
Path("build/combined.txt").write_text(content)
@task(depends=[combine], outputs=["dist/report.txt"])
def report() -> None:
Path("dist").mkdir(exist_ok=True)
Path("dist/report.txt").write_text(Path("build/combined.txt").read_text())
run()
run() executes tasks in dependency order. Later runs mark unchanged tasks as
SKIPPED.
CLI
Put tasks in a Python file, then run or inspect the graph:
acyro run examples/acyrofile.py
acyro graph examples/acyrofile.py
Cache
Successful tasks are cached under .acyro/cache. Fingerprints include task
metadata, source code, input contents, output contents, and dependency
fingerprints. Changing an input or dependency invalidates downstream tasks;
deleting or modifying an output reruns its task.
Input declarations accept explicit files and Glob patterns. Output declarations must be explicit file paths. Paths are resolved from the current working directory, and file contents are hashed with SHA-256. Missing inputs and outputs raise clear errors without replacing the last successful cache record.
Tasks without inputs or outputs retain the original source- and
dependency-based cache behavior. Use run(cache_dir=...) to choose another
cache directory.
Acyro is intentionally serial and local. It has no async runtime, distributed workers, database, retries, or pluggable cache backends.
Development
uv sync --extra dev
uv run pytest -q
uv run ruff check .
uv build
Licensed under the MIT License.
Metadata
Release files for acyro 0.2.0
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 | |
|---|---|---|---|---|
| acyro-0.2.0.tar.gz | 17.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| acyro-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.1 kB
Release files / acyro-0.2.0.tar.gz
| Download URL | acyro-0.2.0.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f71c5e445cb4dd86fd85258f3ae7a6547eea1807d497ddd7816ea7ac8174072
|
|
BLAKE2b-256 checksum How to use checksums |
29bd869bf24f5a3d1a728b88c5abe93d9cea6618c490276615ea7c0b4347a94a
|
| 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 Jul 13, 2026.
Transparency logRelease files / acyro-0.2.0-py3-none-any.whl
| Download URL | acyro-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e0ee6970ab89d3d0167a632d30a3a832576db540f2e0e3aa0fee4817336a2b1
|
|
BLAKE2b-256 checksum How to use checksums |
0e9c7ffaa2d10d1e40d3f2365f2b272342eb95029e7a312174a75a3646ea3e78
|
| 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 Jul 13, 2026.
Transparency logSecurity for acyro 0.2.0
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 acyro-0.2.0.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 Jul 13, 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.