Skip to main content


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)
-l, --legend Include a legend in the visualization.
-p, --no-ports Don't show ports.
-s, --simple Output a more simple graph with no image names and only basename of sources.
-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, please select the dev branch as the target branch.

(back to top)

License

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

(back to top)

Contact

Author

(back to top)

Metadata

Release files for compose-viz 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for compose-viz 0.3.5
File Size Uploaded
compose_viz-0.3.5.tar.gz 22.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for compose-viz 0.3.5
File Interpreter ABI Platform
compose_viz-0.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 47.7 kB

Release files / compose_viz-0.3.5.tar.gz

Download URL compose_viz-0.3.5.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fa4b6c5929ceed1813b55f6645d0ec9cacbcaf2a3d625ebb4e30aae5e967e5e9
BLAKE2b-256 checksum
How to use checksums
cf868063ecc45006b0d0e3774d0db737f56dc4e0954d1a4a66982b1857df1875
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.10.2 Linux/6.11.0-1018-azure

Release files / compose_viz-0.3.5-py3-none-any.whl

Download URL compose_viz-0.3.5-py3-none-any.whl
Size 24.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a939d61fef91d40e46b0b643f005ab9515afee3ad58c08df9102040c765f7b3a
BLAKE2b-256 checksum
How to use checksums
17161e187c1edc56b70393526e8854076d3cc180bf1cd0e180d50c44950ca3db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.10.2 Linux/6.11.0-1018-azure

Release history Release notifications | RSS feed

This release

0.3.5 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page