Skip to main content

Cereyan

PyPI CI Python License Status

Cereyan is a minimal, local-first orchestrator for Python data pipelines. A Rust core (SQLite store, state machine, scheduler, HTTP server) sits behind a thin layer of Python decorators, and the whole thing ships as one wheel with no runtime dependencies. Decorate functions as flows and tasks, run them as plain scripts, and every run is recorded locally; cereyan serve adds live monitoring, schedules, retries, backfills, rules, and a built-in MCP server for agents on top of the same store.

pip install cereyan
# pipeline.py
from datetime import date
from cereyan import flow, task, get_run_logger

@task
def extract(day: date) -> list[int]:
    get_run_logger().info("extracting %s", day)
    return [1, 2, 3]

@task
def load(rows: list[int]) -> int:
    return sum(rows)

@flow(run_name="etl-{day}")
def etl(day: date = date(2026, 9, 6)) -> int:
    return load(extract(day))

if __name__ == "__main__":
    print(etl())
python pipeline.py                                    # records a run in ~/.cereyan/db.sqlite
cereyan run pipeline.py:etl --param day=2026-01-02    # same, with parameters and a summary
cereyan serve .                                       # API, UI, scheduler, engines at http://127.0.0.1:4200

The cereyan dashboard beside the project and group sidebar: counts by state, a histogram, Needs attention with a paused and a failed run, Running now, and the Recently completed table

The dashboard after cereyan serve — take the full tour

  • Offline first. A script records runs into a local SQLite file; nothing else needs to run.
  • One process to serve. The API, the web UI, the scheduler, a warm pool of engine processes, rules, and MCP, in one cereyan serve.
  • Data-pipeline semantics. Targets make reruns idempotent, backfills cover date ranges or listed values, resources are named semaphores that can be keyed by parameter, flows chain and fan in by key, unique keys stop duplicate runs, and rules react to events or to their absence.
  • Durable runs. Every completed task is checkpointed, so a crash rerun or a retry from failure resumes after the last finished task; a run can sleep, wait for an event or a target, or snooze without holding an engine; and a task keeps notes that survive its retries.

Screenshots

Every page below is described in the tour; click a shot to jump to it.

Runs list beside the project and group sidebar, in collapsible sections whose headers roll up their runs' states, over rows with popover filters and a task-state bar per run Run detail: the header band, the tasks rail, and the live log lines with level, search and Follow controls
Runs — scope by project and group, filter, act in bulk Run detail — logs, tasks and retries
Flows beside the project and group sidebar, banded by group under Last run, Schedule and Tags filters, a scheduled flow's row menu open on Skip next run, Skip runs and Reschedule, over rows with schedules in words, a run-history sparkline and the flows each starts after Task timeline: a run's task runs as bars on a time axis, with a dependency view
Flows — groups, schedules, skips, dependencies, history Timeline — the task graph of a run
Events page with the live feed and a JSON payload viewer Rules page listing when/do rules and their firing counts
Events — what happened, as it happens Rules — react to events, or to their absence

The UI follows your system theme; the documentation shows the dark variants too.

Documentation

The site is at https://sercanatalik.github.io/cereyan/ (built from docs/ with just docs):

  • Quickstart: from install to a scheduled, retried, backfilled pipeline in ten minutes.
  • Concepts: the model behind flows, runs, states, schedules, targets, resources, backfills, dependencies, events, rules, artifacts, and variables.
  • Guides: one goal per page, from retries to running the server as a service and using cereyan with an AI agent.
  • Reference: the Python API, CLI, HTTP API, MCP tools, events, states, and configuration.
  • Design and limitations: what cereyan does not do, and why.
  • For agents: llms.txt and llms-full.txt.
  • Changelog.

Status

Production ready, and published to PyPI. The pieces described here work and are tested on macOS, Linux and Windows, and the interfaces — names, signatures, defaults, routes, event payloads and the database schema — are settled. Windows lacks the Unix socket and engine niceness, and cannot interrupt a flow blocked in most I/O; Install lists what that changes. Read the changelog before upgrading. Issues and questions are welcome.

Development

Rust stable, Python 3.11 or newer with uv, Node 22, and just. just ui builds the UI, just dev builds the extension in place, just test and just lint run everything, just demo serves the examples. Details, the repository layout, and the release checklist are in the contributing guide. Design decisions are on the Design pages, and changes not yet released are under Unreleased in CHANGELOG.md.

Credits

Cereyan owes its shape to two projects that came first.

Luigi contributed the idea the data-pipeline semantics rest on: a task declares the target it produces, and work is skipped when that target already exists. Target and LocalTarget keep Luigi's names because they are Luigi's concept, and idempotent reruns and backfills follow from it.

Prefect contributed the authoring model — flows and tasks as decorated functions, runs carrying explicit states, a server watching them — and the look of the UI. Six UI components were adapted from Prefect's, rewritten in React from the Vue originals

Neither is a dependency, and cereyan deliberately does far less than either: one machine, one process, one wheel, no remote workers and no database to run. If you need what they do, use them. Migrating from Prefect or Luigi says what carries over and what does not.

License

MIT, see LICENSE.

Metadata

Release files for cereyan 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cereyan 2.3.0
File Size Uploaded
cereyan-2.3.0.tar.gz 360.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for cereyan 2.3.0
File
cereyan-2.3.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
cereyan-2.3.0-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details
cereyan-2.3.0-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details
cereyan-2.3.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details
cereyan-2.3.0-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details

Total release size: 38.7 MB

Release files / cereyan-2.3.0.tar.gz

Download URL cereyan-2.3.0.tar.gz
Size 360.6 kB
Tags Source
SHA-256 checksum
How to use checksums
af2f1554d261fa2fff10f93bc1a588f3b84a0ab4b52edbd803d379499363e782
BLAKE2b-256 checksum
How to use checksums
568a7087aecdba99aad669f5902d833079eb7fbc0d74d765ef673319938f056e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 20, 2026.

Transparency log

Release files / cereyan-2.3.0-cp311-abi3-win_amd64.whl

Download URL cereyan-2.3.0-cp311-abi3-win_amd64.whl
Size 7.9 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
77a8720d17f660de782e055ba8796732c9b13a033a7642a4c7becd16aa713af1
BLAKE2b-256 checksum
How to use checksums
097c38db30e252e5b7efaf4148335b36363500a6cf78cf67d63241602bc0bfe4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 20, 2026.

Transparency log

Release files / cereyan-2.3.0-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL cereyan-2.3.0-cp311-abi3-manylinux_2_28_x86_64.whl
Size 8.0 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
f8fb84b7b90594e610bde324f4de9f26e9155358c6d0553daee35926436d35c5
BLAKE2b-256 checksum
How to use checksums
2cab4699f258c92fbcc60e2162a13f3e2c4cd6145ad5c47a89470dbd9264b8d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 20, 2026.

Transparency log

Release files / cereyan-2.3.0-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL cereyan-2.3.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 7.6 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
8b5b128d43f2cdee025e9cd51637c1558a83e77ff5800378950c7c2a60ead812
BLAKE2b-256 checksum
How to use checksums
069bf562585f37e5d29e8aa02423c9615f3981aeff89ccee89266bb6b351ff0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 20, 2026.

Transparency log

Release files / cereyan-2.3.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL cereyan-2.3.0-cp311-abi3-macosx_11_0_arm64.whl
Size 7.3 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b8325154c14deea62e920a9716b7a9be5ca440aeceacaa97256e36219eaf2645
BLAKE2b-256 checksum
How to use checksums
a8b3c7a53467c5a6405601051a18c626bd2a5d8b7d3179957f9f01b0554edf05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 20, 2026.

Transparency log

Release files / cereyan-2.3.0-cp311-abi3-macosx_10_12_x86_64.whl

Download URL cereyan-2.3.0-cp311-abi3-macosx_10_12_x86_64.whl
Size 7.7 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9ec3be9c290a60234d3cc6e02dc3b9f37d9ab5ed8b431a5a8f4b45187784d76a
BLAKE2b-256 checksum
How to use checksums
fdee6580f2ba58fe0db577c74b3ff72722c4f43cf1e02d8c7053895714a4fa3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 20, 2026.

Transparency log

Release history Release notifications | RSS feed

3.3.1

6 release files

3.3.0

6 release files

3.2.0

6 release files

3.1.3

6 release files

3.1.2

6 release files

3.0.1

6 release files

2.3.1

6 release files

This release

2.3.0 This release

6 release files

2.2.0

6 release files

2.1.0

6 release files

2.0.0

6 release files

1.16.0

6 release files

1.15.0

6 release files

1.14.0

6 release files

1.13.1

6 release files

1.13.0

6 release files

1.12.0

6 release files

1.9.2

6 release files

1.9.1

6 release files

1.9.0

6 release files

1.8.0

6 release files

1.7.0

6 release files

1.6.1

6 release files

1.6.0

6 release files

1.5.0

6 release files

1.4.0

6 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page