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. Configuration is validated at startup with Pydantic, and every payload's script template is parsed then too — not halfway through a run.

Upgrading from a release with the serial_bash, parallel_bash or http_dispatcher dispatchers? The script now lives on the job builder; see the upgrade guide (sphinx/getting-started/upgrading.md).

Quick Start

pip install data-courier

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.0a37

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.0a37
File Size Uploaded Provenance Actions
courier_pigeon-1.0.0a37.tar.gz 255.4 kB With provenance Details for courier_pigeon-1.0.0a37.tar.gz

Built distribution (wheel)

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

Total release size: 562.1 kB

Release files / courier_pigeon-1.0.0a37.tar.gz

Download URL courier_pigeon-1.0.0a37.tar.gz
Size 255.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3cc629121c5b105920f9b7b4c38dac226ade2865e8ee02395938967627ca23b9
BLAKE2b-256 checksum
How to use checksums
3a97df48129d1c251f028bb62a563aa13d632fdec3e2fe463517f6a8eb968c51
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 Oct 7, 2026.

Transparency log

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

Download URL courier_pigeon-1.0.0a37-py3-none-any.whl
Size 306.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75ff844136345bbfacdac2928efedd858eabebfedaf431d38c19db6098f258f7
BLAKE2b-256 checksum
How to use checksums
84cd6b59f1ddcdf167042be007d49478ccf2af5cc1ad088f59f623ae04c7c986
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 Oct 7, 2026.

Transparency log

Security for courier-pigeon 1.0.0a37

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.0a37.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 7, 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