Skip to main content

Python wrapper around invoking the Docker Compose CLI (https://github.com/docker/compose)

Project description

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.3.1.0/docker_compose_py-5.3.1.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.3.1.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.3.1.0
  hooks:
  - id: docker-compose
    args: [-f, path/to/docker-compose.yml, config, --quiet]

Supported Platforms

Platform Architecture
Linux x86_64, aarch64, armv6l, armv7l, ppc64le, riscv64, s390x
macOS x86_64, arm64
Windows x86_64 (AMD64), arm64 (ARM64)

Note: Windows x86 (32-bit) and Linux i686 are not supported — Docker Compose v5.x does not publish binaries for these architectures.

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 11 supported platforms.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

docker_compose_py-5.3.1.0-py2.py3-none-manylinux_2_17_aarch64.whl (10.0 MB view details)

Uploaded Python 2Python 3manylinux: glibc 2.17+ ARM64

docker_compose_py-5.3.1.0-py2.py3-none-macosx_11_0_arm64.whl (10.3 MB view details)

Uploaded Python 2Python 3macOS 11.0+ ARM64

docker_compose_py-5.3.1.0-py2.py3-none-macosx_10_9_x86_64.whl (11.4 MB view details)

Uploaded Python 2Python 3macOS 10.9+ x86-64

File details

Details for the file docker_compose_py-5.3.1.0-py2.py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for docker_compose_py-5.3.1.0-py2.py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 fe7768fb1471eeca5864bf2bccc21a541e35df73c05c3eddfb2ee954317e32ba
MD5 fa25f2c0d7a0bcbfc8e51dcb7ffbbdd6
BLAKE2b-256 d819cc47e8025bcb566e883681d56358a544ca3f7c5cf4971f2e50f1ff8457cc

See more details on using hashes here.

File details

Details for the file docker_compose_py-5.3.1.0-py2.py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for docker_compose_py-5.3.1.0-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b532dfa03609b2b2452b1c809dad1f6cd7d9bdfdc85c49e04a7a485a4a6da306
MD5 7dc891f6d9567be223d0d7d42d0ca0cc
BLAKE2b-256 78b48f11f97913db03721c32c8df2bb938ab8af5a8eb02e4ce02a4412b4e1055

See more details on using hashes here.

File details

Details for the file docker_compose_py-5.3.1.0-py2.py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for docker_compose_py-5.3.1.0-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bd4339db84bf2e604e2ec145bc2920e368a45a31bba93319afd94b1a97a33332
MD5 3b97d51ab2255b17de2ebed4effa2fd4
BLAKE2b-256 9b208c87cdd31999c7fa750bd53eddee889139bf088dc708586d4c2ee3012a5d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page