docker-compose-py
A Python wrapper to provide a pip-installable
Docker Compose CLI (docker-compose) binary.
Installation
pip install docker-compose-py
Or install a platform wheel directly from a GitHub Release (for air-gapped/offline use):
pip install https://github.com/neeve-ai/docker-compose-py/releases/download/v5.6.0.0/docker_compose_py-5.6.0.0-py2.py3-none-manylinux_2_17_x86_64.whl
Usage
After installation, the docker-compose binary is available in your environment:
docker-compose version
docker-compose config --quiet
As a pre-commit hook
Add to your .pre-commit-config.yaml:
- repo: https://github.com/neeve-ai/docker-compose-py
rev: v5.6.0.0
hooks:
- id: docker-compose
This runs docker-compose config --quiet to validate the default compose file
(compose.yml or docker-compose.yml in the current directory).
To validate a non-default file:
- repo: https://github.com/neeve-ai/docker-compose-py
rev: v5.6.0.0
hooks:
- id: docker-compose
args: [-f, path/to/docker-compose.yml, config, --quiet]
Supported Platforms
| Platform | Architecture |
|---|---|
| Linux | x86_64, aarch64 |
| macOS | x86_64, arm64 |
| Windows | x86_64 (AMD64), arm64 (ARM64) |
Note: Only the two mainstream Linux architectures (x86_64 and aarch64) are supported, as PyPI does not support exotic Linux wheel tags (armv6l, armv7l, ppc64le, riscv64, s390x) in its registry. Windows x86 (32-bit) and Linux i686 are also unsupported.
Updating to a new Docker Compose version
./update_version.sh 5.4.0
This downloads the checksums.txt from the new release and regenerates setup.cfg
with updated URLs and SHA-256 hashes for all 6 supported platforms.
Metadata
Release files for docker-compose-py 5.6.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| docker_compose_py-5.6.0.0-py2.py3-none-win_arm64.whl | Python 3, Python 2 | none | Windows ARM64 | Details |
| docker_compose_py-5.6.0.0-py2.py3-none-win_amd64.whl | Python 3, Python 2 | none | Windows x86-64 | Details |
| docker_compose_py-5.6.0.0-py2.py3-none-manylinux_2_17_x86_64.whl | Python 3, Python 2 | none | Linux glibc 2.17+ x86-64 | Details |
| docker_compose_py-5.6.0.0-py2.py3-none-manylinux_2_17_aarch64.whl | Python 2, Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| docker_compose_py-5.6.0.0-py2.py3-none-macosx_11_0_arm64.whl | Python 3, Python 2 | none | macOS 11.0+ ARM64 | Details |
| docker_compose_py-5.6.0.0-py2.py3-none-macosx_10_9_x86_64.whl | Python 2, Python 3 | none | macOS 10.9+ x86-64 | Details |
Total release size: 64.1 MB
Release files / docker_compose_py-5.6.0.0-py2.py3-none-win_arm64.whl
| Download URL | docker_compose_py-5.6.0.0-py2.py3-none-win_arm64.whl |
|---|---|
| Size | 10.1 MB |
| Tags | Python 2 Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
85cfd0e9fa796ff68e8df953e946c31d65605620741c9e57de424332dafd22cf
|
|
BLAKE2b-256 checksum How to use checksums |
f4fad2d99956a195f527a52f9d001e4e25d567e4adbf40446e649fa5b74ea94d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / docker_compose_py-5.6.0.0-py2.py3-none-win_amd64.whl
| Download URL | docker_compose_py-5.6.0.0-py2.py3-none-win_amd64.whl |
|---|---|
| Size | 11.3 MB |
| Tags | Python 2 Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
14290872644f4a17d637d7c19dc83a44a0e6706504c19b0d0b77a397a0f54934
|
|
BLAKE2b-256 checksum How to use checksums |
2e5fd2cbd3a66f304d882f61ed9c9c2469671696e76ed6f6a666b1a5b593de33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / docker_compose_py-5.6.0.0-py2.py3-none-manylinux_2_17_x86_64.whl
| Download URL | docker_compose_py-5.6.0.0-py2.py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 11.1 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7504dfc59abb29e9c083d7c5fb54c61093b652cedfeeb4cfe380e624e4fa9413
|
|
BLAKE2b-256 checksum How to use checksums |
72e6be1d78ddd2b9e9342fa2888133f795b0ca188b028329387ce9c105da427c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / docker_compose_py-5.6.0.0-py2.py3-none-manylinux_2_17_aarch64.whl
| Download URL | docker_compose_py-5.6.0.0-py2.py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 10.0 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6b8227842c7c4ccb7c0902a3700372fe25c9fe1c8b81e64b3daf865d54e95911
|
|
BLAKE2b-256 checksum How to use checksums |
f7904dabf7a6e17f15614f4c548833faeee970de5b929b8c73010c59d90c0993
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / docker_compose_py-5.6.0.0-py2.py3-none-macosx_11_0_arm64.whl
| Download URL | docker_compose_py-5.6.0.0-py2.py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 10.2 MB |
| Tags | Python 2 Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6af4ed283888b4c635083c81e1463a3e946851f25e4462e3f392048829759ef3
|
|
BLAKE2b-256 checksum How to use checksums |
8d79b942c13c3515a3d5419e544a404df9e55e1d2b0e24798e0ab5f501241739
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / docker_compose_py-5.6.0.0-py2.py3-none-macosx_10_9_x86_64.whl
| Download URL | docker_compose_py-5.6.0.0-py2.py3-none-macosx_10_9_x86_64.whl |
|---|---|
| Size | 11.3 MB |
| Tags | Python 2 Python 3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
47d26bd4418a7ae9699ac45d00bb349481f798452f1531de9700c782d8115757
|
|
BLAKE2b-256 checksum How to use checksums |
110c1cce24680fe3069b31a1a55bedb41b7c5e0be549299e792efe6a40ded3a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|