Skip to main content

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

Project description

docker-compose-py

CI PyPI

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.1/docker_compose_py-5.3.1.1-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.1
  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.1
  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.

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.1-py2.py3-none-win_arm64.whl (10.1 MB view details)

Uploaded Python 2Python 3Windows ARM64

docker_compose_py-5.3.1.1-py2.py3-none-win_amd64.whl (11.3 MB view details)

Uploaded Python 2Python 3Windows x86-64

docker_compose_py-5.3.1.1-py2.py3-none-manylinux_2_17_x86_64.whl (11.1 MB view details)

Uploaded Python 2Python 3manylinux: glibc 2.17+ x86-64

docker_compose_py-5.3.1.1-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.1-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.1-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.1-py2.py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for docker_compose_py-5.3.1.1-py2.py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 aea3e1f35e754e8a73a91e8f086d26878e6570f12296e2ec834d8bc074ff87bb
MD5 73559345ec64ca942dee0b688cca3146
BLAKE2b-256 39c90c6a2816936a0beb95652617973175c8f30d474e742c4f23b26a4975e6f8

See more details on using hashes here.

File details

Details for the file docker_compose_py-5.3.1.1-py2.py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for docker_compose_py-5.3.1.1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 90fec93829851c7e1a3d282544d8225465e1999809b14665981f2bf5aa59a3e2
MD5 2d3454f7326d7de52e56aacee46c3bf0
BLAKE2b-256 7a0920e55c3a754bb56b8905f2c6e7984ed4b69ab8fbd4ce09445d6d2a069b8a

See more details on using hashes here.

File details

Details for the file docker_compose_py-5.3.1.1-py2.py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for docker_compose_py-5.3.1.1-py2.py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 fdbd7b4674b2596f3e67c476d629ab33f19358b7f1104880aed47e91d834170e
MD5 4eddeb07abf24329f05e988dda9d17f0
BLAKE2b-256 07b16103274a73baeb8f27da5cadeca74c3ce2fec4b60c91529f70d076091e9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for docker_compose_py-5.3.1.1-py2.py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 30c7d345ae83f4bb688600111d0501ece36d6d124d67db264f2fa0528c9941e0
MD5 53f7782ce6ba8de268bdf004656d9110
BLAKE2b-256 baaf61f301cc6291b5c7e0f69e191ef6a86ea67764157973a03e6bccb943b062

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for docker_compose_py-5.3.1.1-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8781d0aaf0981388e6104e85e5ad96a49779097553abb21db565103b552c0edb
MD5 70fa2b65e4681187b80d4ba503ce0934
BLAKE2b-256 1bc5e9aa1d6707e21c92be1380516d5d3dee8a9502e6559205801529f39f3727

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for docker_compose_py-5.3.1.1-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 44713743c38144f8586e6cfe56e65048524c24e9d6cd5a67f2277d9ad11416fd
MD5 f6656c2f847a73f84aac49d5541c27bf
BLAKE2b-256 4e1d16cb9609d1dd6a7ac6e07a7db2ec85f8e830f1ee50c5d5144dafd08eaf54

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