An open API service indexing awesome lists of open source software.

https://github.com/adyanth/docker-compose-python

Using docker compose as a library
https://github.com/adyanth/docker-compose-python

Last synced: about 1 month ago
JSON representation

Using docker compose as a library

Awesome Lists containing this project

README

          

# Docker Compose as a **usable** library

The code monkey patches the docker compose.cli.main functions so that the compose CLI commands can be given programmatically, and the output is retrieved in a StringIO object.

Check the sample compose-up.py for both the patch and usage. The `run()` function allows you to define CLI like commands to be run against docker-compose.