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, one queue with processors you size while it runs, schedules (including continuous loops), retries, backfills, rules, and a built-in MCP server for agents on top of the same store. When one machine is not enough, cereyan worker on another machine adds its processors to the same queue.

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 . --token $TOKEN                        # API, UI, scheduler, engines at http://127.0.0.1:4200
cereyan worker . --host https://cereyan.internal      # on another machine: its processors join the queue

The cereyan dashboard beside the grouped sidebar: counts by state over a histogram, the Flows card with each flow's last ten runs and a failed run's logs open, then Upcoming, Needs attention, and Running now

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, one queue, a warm pool of engine processes, rules, and MCP, in one cereyan serve. The Queue page shows every run in line and why it waits, and lets you add or remove processors while the server runs.
  • Workers when you need them. cereyan worker runs on another machine with its own checkout and connects out to the server: when the server's processors are full, runs spill over to workers whose code matches. The store, results and secrets stay on the server, every hand-off carries a lease, the Workers tab shows each machine's status, host and schedule, and each worker serves a status page of its own.
  • 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, continuous schedules run a flow again a set time after each run ends, 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, a target, or a message sent through the API, 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 sidebar and its scope picker, in collapsible sections whose headers roll up their runs' states, over rows with popover filters, the host that ran each run, and a task-state bar per run Run detail: a summary sentence, the facts grid, the tasks rail with states in words, and the log lines with level chips, search and Follow
Runs — scope by project and group, filter, act in bulk Run detail — logs, tasks and retries
Flows beside the sidebar, banded by group under the Failing, Scheduled, Waiting for input and Never run chips, a scheduled flow's row menu open on Skip next run, Skip runs and Reschedule, over rows with schedules in words and the last ten runs as squares 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 Queue page: the Capacity card with processor slots and add and remove buttons, then Up next with the runs ready to start and starting later
Queue — one line, processors, and workers

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, running across machines, 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: 3.0 changes the engine protocol (servers and workers of 2.x and 3.0 do not mix), migrates the store, and starts a server with one processor instead of one per CPU. 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 queue, one process, one wheel, no database to run, and workers that are plain processes on machines you already have rather than a platform of pools and images. 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 3.4.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 3.4.0
File Size Uploaded Provenance Actions
cereyan-3.4.0.tar.gz 632.1 kB With provenance Details for cereyan-3.4.0.tar.gz

Built distributions (wheels)

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

Total release size: 44.5 MB

Release files / cereyan-3.4.0.tar.gz

Download URL cereyan-3.4.0.tar.gz
Size 632.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4b30ce3f2bbafbda7ec08e3eae2701dbd683dbb992f48e492ed52f7f5c051444
BLAKE2b-256 checksum
How to use checksums
992acbba9664b5d47bf74be180121fced2d41dadafb8b967e3d99bc9c6106dd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 30, 2026.

Transparency log

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

Download URL cereyan-3.4.0-cp311-abi3-win_amd64.whl
Size 9.1 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
043aab5c5c20c31ce7d9029124a4b68cb4cfb9e868b34c126495c95a5e1f9f0c
BLAKE2b-256 checksum
How to use checksums
004fee1490784b188500b10228e91f82c8ce5a843cd76f2efa2bff12ae1da96f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 30, 2026.

Transparency log

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

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

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 Nov 30, 2026.

Transparency log

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

Download URL cereyan-3.4.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 8.6 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
b858162f500f082c70cdfb229402e7ea24c60b1e477d47d2e0b507cc3750aa25
BLAKE2b-256 checksum
How to use checksums
30f9005da11c0eed349878b526279dd4c018aab739959b47913b12a8f5b50895
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 30, 2026.

Transparency log

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

Download URL cereyan-3.4.0-cp311-abi3-macosx_11_0_arm64.whl
Size 8.4 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cf45d83e091af7bf415c202f9072d3dca50b1f304336672e1c7cc3b205cf5f4e
BLAKE2b-256 checksum
How to use checksums
7e790db4094bf0c79c17efccab433f4aeb2f46c1667d025233fd42f45b8d2f8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 30, 2026.

Transparency log

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

Download URL cereyan-3.4.0-cp311-abi3-macosx_10_12_x86_64.whl
Size 8.8 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
83c84db86ed9cfa3d2861339e0405b9b1e025403ebfaa1cccae5a634236d3942
BLAKE2b-256 checksum
How to use checksums
3bf2678bcb486d9a719a3d44b58d6c01c5f229deb9cfb8831d9d72debbc5094e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 30, 2026.

Transparency log

Security for cereyan 3.4.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 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for cereyan-3.4.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 Nov 30, 2026.

Transparency log

A 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.4.0 This release

6 release files Full provenance

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