🐳 subcompose
A command line utility to manage subsets of services in compose.yaml files.
Features
- Manage and run subsets of services from a Docker Compose file
- Group services for flexible orchestration
- Validate and preview Compose configurations
- Delete containers and images by group
- CLI and Python API usage
- Example Compose file included
Overview
SubCompose helps you orchestrate, validate, and manage complex Docker Compose setups by grouping services and providing advanced CLI operations.
Quick Installation
You can install SubCompose directly from the GitHub releases or from PyPI.
Install from GitHub releases
pip install https://github.com/doraemoncito/subcompose/archive/refs/tags/vX.Y.Z.tar.gz
Replace vX.Y.Z with the desired release version.
Install from PyPI
pip install subcompose
After installation, you can run SubCompose as a command:
subcompose --help
Developer Instructions: The following section is for contributors and developers who want to install from source or run tests.
Local Installation from Source
-
Install poetry if you don't have it already. The officially recommended approach is via the installer script which uses Python itself and works on macOS, Linux, and Windows:
python3 -m pip install --user pipx python3 -m pipx ensurepath pipx install poetry
This method has several advantages:
- Isolated install (no dependency conflicts)
- Uses your system Python
- Easy upgrades
Upgrade later with:
pipx upgrade poetry
-
Install subcompose using Poetry:
poetry install
Usage
To see available commands:
subcompose --help
Example Compose File
An example Compose file is provided at examples/compose.yaml. You can use this as a template for your own projects.
License
This project is licensed under the GPL v3. See the LICENSE file for details.
Metadata
Release files for subcompose 1.0.0
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 |
|---|---|---|---|---|
| subcompose-1.0.0.tar.gz | 24.5 kB | Without provenance | Details for subcompose-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| subcompose-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for subcompose-1.0.0-py3-none-any.whl |
Total release size: 55.5 kB
Release files / subcompose-1.0.0.tar.gz
| Download URL | subcompose-1.0.0.tar.gz |
|---|---|
| Size | 24.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24673ee45b122a34cdd253041c5c0c028dc074bac3a209e53ad2a945d17c115d
|
|
BLAKE2b-256 checksum How to use checksums |
5d5e4dde8986f2e507e2f3d72d177c6a147f42bd7e61c0d0ae8e85b7987312c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.4 CPython/3.12.10 Darwin/25.4.0
|
Release files / subcompose-1.0.0-py3-none-any.whl
| Download URL | subcompose-1.0.0-py3-none-any.whl |
|---|---|
| Size | 31.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3326150e9a8028150a27cd592992df4a30a298e9e03010c9c0dd86391af48b7
|
|
BLAKE2b-256 checksum How to use checksums |
054e996800a6f4a9b4c0ee1eb79c8d967268f2d1a53f5e1551e1b868ba7570e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.4 CPython/3.12.10 Darwin/25.4.0
|
Security for subcompose 1.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.