https://github.com/zorbash/opus_graph
Graph visualization for Opus pipelines
https://github.com/zorbash/opus_graph
Last synced: 11 months ago
JSON representation
Graph visualization for Opus pipelines
- Host: GitHub
- URL: https://github.com/zorbash/opus_graph
- Owner: zorbash
- License: mit
- Created: 2018-11-14T23:22:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-06T11:23:54.000Z (almost 5 years ago)
- Last Synced: 2025-03-30T01:36:36.903Z (12 months ago)
- Language: Elixir
- Size: 21.5 KB
- Stars: 2
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Opus.Graph
[](https://travis-ci.org/zorbash/opus_graph)
[](https://hex.pm/packages/opus)
[](https://coveralls.io/github/zorbash/opus?branch=master)
A complementary package for [Opus][opus] which visualises pipelines using Graphviz.
## Installation
The package can be installed by adding `opus_graph` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:opus_graph, "~> 0.1"}]
end
```
## Documentation
* [hexdocs](https://hexdocs.pm/opus_graph)
* [wiki](https://github.com/zorbash/opus_graph/wiki)
## Usage
```elixir
Opus.Graph.generate(:your_app)
# => {:ok, "Graph file has been written to your_app_opus_graph.png"}
```
This feature uses [graphviz][graphviz], so make sure to have it
installed. To install it:
```shell
# MacOS
brew install graphviz
```
```shell
# Debian / Ubuntu
apt-get install graphviz
```
`Opus.Graph` is in fact a pipeline and its visualisation is:

You can customise the visualisation:
```elixir
Opus.Graph.generate(:your_app, %{filetype: :svg})
# => {:ok, "Graph file has been written to your_app_opus_graph.svg"}
```
Read the available visualisation options [here][hexdocs-graph].
## License
Copyright (c) 2018 Dimitris Zorbas, MIT License.
See [LICENSE.txt](https://github.com/zorbash/opus/blob/master/LICENSE.txt) for further details.
[hexdocs-graph]: https://hexdocs.pm/opus/Opus.Graph.html
[graphviz]: https://www.graphviz.org/
[opus]: https://github.com/zorbash/opus