Skip to main content

Orche

CI 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.10
  • 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.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.6.0
File Size Uploaded Provenance Actions
orche-0.6.0.tar.gz 112.0 kB With provenance Details for orche-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 127.7 kB

Release files / orche-0.6.0.tar.gz

Download URL orche-0.6.0.tar.gz
Size 112.0 kB
Tags Source
SHA-256 checksum
How to use checksums
723caadfbb98f0c9a7d295058afd9b13a45a6e2e4872f600302cd807425d47c8
BLAKE2b-256 checksum
How to use checksums
322eac17910d90824210eb1454a56acf9c114608f577d7b4429629ca39b32778
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 log

Release files / orche-0.6.0-py3-none-any.whl

Download URL orche-0.6.0-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b2ce13236b36742a9e1e888e58e904d1b991cace618b9acaa8f5b7661aa5343
BLAKE2b-256 checksum
How to use checksums
2eee46d61cec076fc9af84686afb92efd275803edb9cf6673a4fb458c109eb56
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 log

Security for orche 0.6.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.6.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 28, 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