Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

PyRill

PyRill — Asynchronous streams for Python

Asynchronous streams for Python.

PyRill builds asynchronous data pipelines in plain Python. You connect small elements (sources, stages and sinks) with >>, and the data flows through them one frame at a time, on top of asyncio and with no dependencies.

import asyncio

from pyrill.accumulators import ListAcc
from pyrill.mappers import Map
from pyrill.sinks import Last
from pyrill.sources import IterableSource


async def main() -> None:
    pipeline = (
        IterableSource(source=["alpha", "beta", "gamma"])
        >> Map(map_func=str.upper)
        >> ListAcc()
        >> Last()
    )
    print(await pipeline.get_frame())


asyncio.run(main())
['ALPHA', 'BETA', 'GAMMA']

Why PyRill

Programs that handle streams (files, sockets, API responses, queues) tend to grow hand-written loops that mix reading, parsing, filtering, timing and error handling. PyRill turns each of those concerns into a small, typed, reusable element that you can test alone and connect with the others.

  • Pull-based. Work happens only when a frame is needed, so a slow consumer slows the whole pipeline, and frames do not pile up in memory unless you add a buffer.
  • Streaming. A pipeline works on one frame at a time, so memory use depends on the size of the frames, not on the length of the stream.
  • Batteries included. Elements for files and asyncio streams, byte and text re-chunking, safe UTF-8 decoding, CSV, JSON, branching (Tee), pairing (Zip), merging (Union), timeouts and deadlines, pausing (Gate), buffering (Queue) and more.
  • Extensible. Write your own sources, stages and sinks, or package a chain of stages as a single reusable stage.
  • Typed. Elements are generic classes, so type checkers follow the frames through a pipeline.

Installation

PyRill needs Python 3.14 or later and has no other dependencies.

$ pip install pyrill

To work on PyRill itself, clone the repository, run uv sync, and run the tests with uv run pytest.

Documentation

Full documentation, including a quickstart, the core concepts, task-oriented guides and a catalog of every element, is at https://pyrill-framework.readthedocs.io/stable/. The same pages are in the docs/ folder.

The messages and monitoring guide explains how to observe lifecycle changes, rejected frames and file activity, and publish custom progress events through the pipeline's message bus.

Project

Metadata

Release files for pyrill 0.3.0

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

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for pyrill 0.3.0
File Size Uploaded Provenance Actions
pyrill-0.3.0.tar.gz 59.4 kB With provenance Details for pyrill-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyrill 0.3.0
File Interpreter ABI Platform Actions
pyrill-0.3.0-py3-none-any.whl Python 3 none any Details for pyrill-0.3.0-py3-none-any.whl

Total release size: 127.3 kB

Release files / pyrill-0.3.0.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL pyrill-0.3.0.tar.gz
Size 59.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a623d72f935ca375b07a968a0044a9c44d308dc04408f0f7ba06554f9e70d5c3
BLAKE2b-256 checksum
How to use checksums
c2acc7957bd373ad5ea97e0dc22ceeb4e865d17e9777014de14415103c8f0830
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 Oct 29, 2026.

Transparency log

Release files / pyrill-0.3.0-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL pyrill-0.3.0-py3-none-any.whl
Size 67.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aeb061d6bdc578ef36a495d01e5c8376affb8c160c5afb0c7775a76a34d67f38
BLAKE2b-256 checksum
How to use checksums
75af93ac99123390bca1faa0f3edc9291c22e43931eb39dd0d2af785644554b0
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 Oct 29, 2026.

Transparency log

Security for pyrill 0.3.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.

Change of provenance

The configuration that created this release differs from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 2 files

Attestation for pyrill-0.3.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 Oct 29, 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

0.3.0 This release

2 release files Change of 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