Skip to main content

Cereyan

PyPI CI Python License Status

[!WARNING] Under development. The API is not final and is not yet released. Anything here — the Python API, the HTTP API, the CLI, the MCP surface, the on-disk format — may change without a deprecation period, and version numbers do not yet imply stability. Pin an exact version if you depend on it, read the changelog before upgrading, and expect to make changes when you do.

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: counts by state, a Needs attention list, Running now with task progress, and the live event feed

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, resources are named semaphores, flows chain and fan in by key, and rules react to events or to their absence.

Screenshots

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

Runs list with popover filters and a task-state bar per run Run detail: the tasks rail, live logs filtered to one task run, and retry countdowns
Runs — filter, select and act in bulk Run detail — logs, tasks and retries
Flows grouped by project with schedules in words and a run-history sparkline Task timeline: an SVG graph of task runs with dependencies and a selection panel
Flows — schedules, 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

Under development, and not yet published to PyPI. The pieces described here work and are tested on macOS, Linux and Windows, but nothing about the interfaces is settled: names, signatures, defaults, routes, event payloads and the database schema are all still open. There is no deprecation policy yet, and there will not be one until the API is declared stable. Issues and questions are welcome; production use is not advised yet.

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.

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; they are marked in ui/src/components/ported/ and listed in NOTICE, and remain under the Apache License 2.0 of their origin.

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. Design and limitations says what cereyan does not do, and why.

License

MIT, see LICENSE.

Metadata

Release files for cereyan 1.6.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 1.6.0
File Size Uploaded
cereyan-1.6.0.tar.gz 217.3 kB Details

Built distributions (wheels)

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

Total release size: 34.0 MB

Release files / cereyan-1.6.0.tar.gz

Download URL cereyan-1.6.0.tar.gz
Size 217.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c6d20c6fe6bc3c6723dabf0dac2f7fc5c99254a50d1420bd26ac4ab4bde00120
BLAKE2b-256 checksum
How to use checksums
ea4f956b9e7309e6233c8cbf3491a7f24789811e48d11890af349a6b5998e675
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 9, 2026.

Transparency log

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

Download URL cereyan-1.6.0-cp311-abi3-win_amd64.whl
Size 6.9 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
83ebe3b1cb2490e466d59f9ebe0b021173ea1b244214df8634a9c39a2b49a8b3
BLAKE2b-256 checksum
How to use checksums
5df3945931a4d722b281ae0db46d2ff2d1ce25e613c38194548ec6bea81433e9
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 9, 2026.

Transparency log

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

Download URL cereyan-1.6.0-cp311-abi3-manylinux_2_28_x86_64.whl
Size 7.1 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
a644f321b36fc2438bf4f2ffb6828e782a4ddf53961e739152130a28149d8141
BLAKE2b-256 checksum
How to use checksums
ed0c080da46914b54f3da8d1b997ba6e4ab3a35d775bdee9da9fbf839e73e188
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 9, 2026.

Transparency log

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

Download URL cereyan-1.6.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 6.7 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
cd420f309115995624f045b0db723ba54e2dc0710fd2162da91deb70a8ffbefc
BLAKE2b-256 checksum
How to use checksums
df588d368427ee84e96408419b5ebf651cf34f3d2ccc0428b298ee3a93751cb7
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 9, 2026.

Transparency log

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

Download URL cereyan-1.6.0-cp311-abi3-macosx_11_0_arm64.whl
Size 6.4 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e42b423509037a31c953e0923774bc0980e96980d2182129d2a639a5906a0498
BLAKE2b-256 checksum
How to use checksums
c8d63b08b81df1b8397b49dbf846f43306c88326d6d44fc51d27418f87ddf79e
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 9, 2026.

Transparency log

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

Download URL cereyan-1.6.0-cp311-abi3-macosx_10_12_x86_64.whl
Size 6.8 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
f9d0dda38efd9127e8d6b7ef646e3a9e323902196be93880220f5de94659569e
BLAKE2b-256 checksum
How to use checksums
51245b048ed8d269b2d008ab5569c66358f2b924641da51e1a70c4678ee8233d
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 9, 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

2.3.0

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

This release

1.6.0 This release

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