Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Courier

Tests Coverage Mypy Ruff Install CSpell

Courier (full name courier-pigeon) is a plugin-based, event-driven orchestration framework for building data processing pipelines. It watches for incoming data, groups it into jobs, and dispatches those jobs to processing workflows. It scales from a single laptop to a distributed cluster without changing your pipeline code.

While general-purpose, Courier ships with extra tooling for geolocation data — satellite instrument configs, metadata extraction, and integration with GeoIPS.

Design Philosophy

Plugin-based. Data monitors, job builders, and dispatchers are all plugins that conform to a simple protocol, and so are the payloads that describe what each job runs. Swap a filesystem watcher for a RabbitMQ consumer, or the local dispatcher for a SLURM submitter, without touching the rest of your pipeline.

Event-driven. Plugins communicate through message queues and do not share state1. When a monitor detects a file, it emits an event. A job builder consumes that event, groups files, and emits a job. A dispatcher picks up the job and runs it. Each stage is decoupled and independently scalable and duplicatable.

Distributable. The broker backend (AMQP, Redis, in-memory or many others) determines your deployment topology. Run everything in one process for development, or spread plugins across machines or even networks for production.

Observable by default. Every plugin exposes health checks and Prometheus metrics. Structured logs carry correlation IDs from file arrival to final product. Optional Loki and Grafana integration for centralized monitoring.

How It Works

Courier runs a central Service that coordinates three stages of plugins through a message broker:

[Data Monitor] → detects new files, emits events
       ↓ (broker queue)
[Job Builder]  → groups files into complete jobs, attaches the runnable payload 
       ↓ (broker queue)
[Dispatcher]   → executes each job's payload 

Each plugin runs in its own thread with independent health monitoring and automatic restart on failure; a plugin that keeps failing, or hangs while starting, takes the service down with it, so an orchestrator can replace the process. Configuration is validated at startup with Pydantic, and every payload's script template is parsed then too — not halfway through a run.

Quick Start

pip install courier-pigeon

Running the service

Point Courier at a YAML config and start it:

courier run my_config.yaml

Validate your config before running:

courier validate my_config.yaml

Writing a data monitor

Subclass DataMonitorBasePlugin and implement find_file as a generator that yields Datum objects. The base class handles threading, metadata enrichment, and queue emission for you.

from collections.abc import Generator
from pathlib import Path

from courier.interfaces.module_based.data_monitors import DataMonitorBasePlugin
from courier.service import Service
from courier.types.datum import Datum

interface = "data_monitors"
family = "standard"
name = "my_monitor"


class MyMonitor(DataMonitorBasePlugin):
    name = "my-monitor"
    version = "1.0.0"

    def __init__(self, service: Service, config: dict) -> None:
        super().__init__(service, config)
        self.watch_dir = Path(config["path"])

    def find_file(self) -> Generator[Datum, None, None]:
        # Yield Datum objects as they appear — the base class
        # handles metadata, emission, and metrics automatically.
        for path in self.watch_dir.iterdir():
            if path.is_file():
                yield Datum(file=path, hostname="localhost")

Satellite Data Support

Courier ships with YAML configs for common satellite instruments including GOES-16/18/19 ABI, Himawari-9 AHI, GK-2A AMI, and Meteosat SEVIRI. These configs define file-matching patterns, expected file counts per scan, and metadata extraction rules — so Courier knows when a complete observation has arrived and how to label it.

Development

pip install -e .[doc,lint,test]
pre-commit install
pre-commit run --all-files

Python 3.11–3.14. Strict mypy.

License

See LICENSE for details.

  1. Except for rare edge cases for high availability deployments on clusters. ↩

Metadata

Release files for courier-pigeon 1.0.0a39

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

Source distribution (sdist)

Source distribution for courier-pigeon 1.0.0a39
File Size Uploaded Provenance Actions
courier_pigeon-1.0.0a39.tar.gz 270.8 kB With provenance Details for courier_pigeon-1.0.0a39.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for courier-pigeon 1.0.0a39
File Interpreter ABI Platform Actions
courier_pigeon-1.0.0a39-py3-none-any.whl Python 3 none any Details for courier_pigeon-1.0.0a39-py3-none-any.whl

Total release size: 594.3 kB

Release files / courier_pigeon-1.0.0a39.tar.gz

Download URL courier_pigeon-1.0.0a39.tar.gz
Size 270.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fe64cd2b547f9efcd4e0555e29530c5e447c8d758688e4478a0e7e748bb05acb
BLAKE2b-256 checksum
How to use checksums
6567c202c6ec7f902d941ecaec5a93e07bffca57dbd5caa66c337883ea669612
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 31, 2026.

Transparency log

Release files / courier_pigeon-1.0.0a39-py3-none-any.whl

Download URL courier_pigeon-1.0.0a39-py3-none-any.whl
Size 323.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef281c08a2db3188418aa1bb42ce18771f4951c144e412b8d017fbda97eea5ef
BLAKE2b-256 checksum
How to use checksums
4c8536f00baa283a68e127fb69d96f867e6c03068a40e3ede3daddfa96475b41
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 31, 2026.

Transparency log

Security for courier-pigeon 1.0.0a39

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for courier_pigeon-1.0.0a39.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 31, 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.

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