Skip to main content

Orche

Test PyPI Python License

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, just and Taskfile are more widely known, so teammates may already know them.

Documentation

Full documentation is available here:

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.7.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 orche 0.7.0
File Size Uploaded Provenance Actions
orche-0.7.0.tar.gz 126.1 kB With provenance Details for orche-0.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 147.8 kB

Release files / orche-0.7.0.tar.gz

Download URL orche-0.7.0.tar.gz
Size 126.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e79458e1dbbbb09dd68b5b51d4c8fbe68b84fa8a071695e6b7cd8807639b8104
BLAKE2b-256 checksum
How to use checksums
403dc45c502675d966bf29cc567881c1a6be258d0d5e766ba2596cc3595c4024
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 / orche-0.7.0-py3-none-any.whl

Download URL orche-0.7.0-py3-none-any.whl
Size 21.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
458f4acc8e5e06f2df56df7fe7b4cb48b4a365b8d74992c9c41d587661e3c4bf
BLAKE2b-256 checksum
How to use checksums
ecdeb99c3cedb0dd62416220a719471f3f05dbfff287004c7730dbd0637b7ba2
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 orche 0.7.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.

Full provenance

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

Select from 2 files

Attestation for orche-0.7.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.

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