Orche
A simple, lightweight Python orchestrator for Docker Compose stacks.
Define your stack logic in an orchefile.py, register commands with decorators, and run everything through the orche CLI.
Installation
pip install orche
Quick Start
Create an orchefile.py in your project root:
from orche import Stack
stack = Stack(
name="myapp",
compose_files=["docker-compose.yml"],
)
@stack.commands.up
def up():
stack.build().up()
@stack.commands.down
def down():
stack.down(volumes=True)
Then run:
orche up
orche down
# Chain commands with commas
orche build, up
How Orche differs
Orche is not a replacement for Docker Compose, and it is not a general-purpose
task runner. If all you need is docker compose up, use that.
Orche is useful when "starting the stack" involves more than Compose itself:
cloning a repository, creating directories, generating config files, running a
migration after the database is up. Instead of a shell script or a Makefile,
you write that logic in Python, next to the Compose files, and attach it to
up, down and your own commands with before/after hooks.
What you get over a Makefile, just or a shell script:
- Real Python for conditionals, parsing YAML and error handling.
- Hooks tied to commands, and
stack.on("service")to run logic only when a given service is targeted. - Errors reported as exceptions with readable messages rather than exit codes.
What you give up:
- It is Python only and needs Docker Compose, so it is a poor fit for tasks unrelated to a Compose stack.
- It is young and small. See the roadmap.
- Make,
justand Taskfile are more widely known, so teammates may already know them.
Documentation
Full documentation is available here:
- Installation
- Quick Start
- CLI Reference
- Guides: Hooks \ Services
- API: Stack \ Command Registry \ Built-in Utilities \ Exceptions
Requirements
- Python >= 3.11
- Docker and Docker Compose installed on the system
Development
Orche uses uv for dependency management.
uv sync --extra dev
uv run pytest
uv run mypy orche
uv run ruff check orche
Metadata
Release files for orche 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| orche-0.6.1.tar.gz | 113.3 kB | With provenance | Details for orche-0.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| orche-0.6.1-py3-none-any.whl | Python 3 | none | any | Details for orche-0.6.1-py3-none-any.whl |
Total release size: 129.0 kB
Release files / orche-0.6.1.tar.gz
| Download URL | orche-0.6.1.tar.gz |
|---|---|
| Size | 113.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8da3469259e676de8a125a22ae0d1340aafb04bcc744019bf541635441a63b39
|
|
BLAKE2b-256 checksum How to use checksums |
99f705892f6966049de2c2a9b4351a0713497cdc1847e00cf3f71967ca349ac1
|
| 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 28, 2026.
Transparency logRelease files / orche-0.6.1-py3-none-any.whl
| Download URL | orche-0.6.1-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a895bafb041cfb811f0d0629f4f54f1e16a6f0435f698a3d94861df07605b539
|
|
BLAKE2b-256 checksum How to use checksums |
e4f7cbd7e0a77bf06f01d982ca67c6e3a41ee80e4d56931325c7271fe8ae2228
|
| 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 28, 2026.
Transparency logSecurity for orche 0.6.1
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.
Attestation for orche-0.6.1.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 28, 2026.
Transparency logA 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.