Skip to main content

A compose file visualization tool that supports compose-spec and allows you to gernerate graph in several formats.

Project description


compose-viz


Table of Contents
  1. About The Project
  2. Getting Started
  3. Roadmap
  4. Contributing
  5. License
  6. Contact

About The Project

compose-viz is a compose file visualization tool that follows compose-spec and allows you to gernerate graph in several formats.

If you are looking for a compose file vizualization tool, and you are using one of the compose-spec implementations (e.g. docker-compose/podman-compose), then compose-viz is a great choice for you.

(back to top)

Getting Started

Prerequisities

Graphviz

You need to install Graphviz to generate graphs.

Installation

Using pip

pip install compose-viz

Using .whl

See releases.

Docker Image

See wst24365888/compose-viz.

Example

This example yml is from docker compose beginner tutorial.

cd examples/voting-app/

# using python script
cpv -m svg docker-compose.yml

# using docker image
docker run --rm -it -v $(pwd):/in wst24365888/compose-viz -m svg docker-compose.yml

# using docker image in powershell
docker run --rm -it -v ${pwd}:/in wst24365888/compose-viz -m svg docker-compose.yml

And this is what the result looks like:

compose-viz.svg

Check out the result here.

Usage

cpv [OPTIONS] INPUT_PATH

Options

Option Description
-o, --output-filename FILENAME Output filename for the generated visualization file. [default: compose-viz]
-m, --format FORMAT Output format for the generated visualization file. See supported formats. [default: png]
-r, --root-service SERVICE_NAME Root of the service tree (convenient for large compose yamls)
-v, --version Show the version of compose-viz.
--help Show help and exit.

(back to top)

Roadmap

  • Support more vizualization components.

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feat/amazing-feature)
  3. Commit your Changes with Conventional Commits
  4. Push to the Branch (git push origin feat/amazing-feature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

Author

Project Link

(back to top)

Project details


Download files

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

Source Distribution

compose_viz-0.3.1.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

compose_viz-0.3.1-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file compose_viz-0.3.1.tar.gz.

File metadata

  • Download URL: compose_viz-0.3.1.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.2 Linux/5.15.0-1036-azure

File hashes

Hashes for compose_viz-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f10ccd11bdde77a2acc9d4b10f4f5c4965b642b1d14c615fabea2a6c97a5283a
MD5 b8b02d3c2a1e02d9be69a5feb7ac2959
BLAKE2b-256 3519b828708aad87c88f3c955cf24490928cfe17b9749120be279274181c2dc9

See more details on using hashes here.

File details

Details for the file compose_viz-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: compose_viz-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.2 Linux/5.15.0-1036-azure

File hashes

Hashes for compose_viz-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e9499c26c0c28a1ad1d1dd184c387fc1fdf72b605a3f94f6ede0e1d202a2e36f
MD5 47526f9a711172f598c2bf9d296b2592
BLAKE2b-256 47c4283e2d61410de3c01ab5fd5f454ff6136fde3dc1da232ba04bd02587e045

See more details on using hashes here.

Supported by

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