Skip to main content

Generate templated graphviz source files from structured data

Project description

Generate templated graphviz source files from structured data

Why

The Graphviz dot language offers a descriptive and flexible way to define graphs of various sorts. However, I think it also has some issues.

  • Maintenance/small changes quickly becomes a hassle, especially when you want to produce similar looking graphs. I.e. highlighting certain elements, or selecting specific parts (it is possible to render just subgraphs, but for me that is not always what I want).

  • The layout engine is not exactly what you would call intuitive and getting it to do your bidding takes time and effort to discover. Also, you need to pull (and remember those) weird tricks. Basically, it’s just boilerplate work.

  • The defaults does not really produce pretty looking graphs, and customizing the design is often tedious work and for me often ends up involving a bunch of copy paste. For SVG output stylesheets are supported, however that doesn’t really work with common cooperation tools (such as slack and github)

So, to address these issues I decided to put together a tool to address all that (and more).

Usage

CLI

The graphviz-overlay executable reads from stdin and produces dot source:

cat examples/simple.json | graphviz-overlay

Version History

0.1.1:
  • Add initial documentation and project description

0.1.0:
  • graph, digraph and er commands.

  • Support for --select, --highlight and --shade via paths.

  • Support for ranks

  • External stylesheet definition.

  • Nodes, edges, and graphs can have classes.

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

graphviz-overlay-0.1.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graphviz_overlay-0.1.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file graphviz-overlay-0.1.1.tar.gz.

File metadata

  • Download URL: graphviz-overlay-0.1.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.5 Linux/5.11.0-44-generic

File hashes

Hashes for graphviz-overlay-0.1.1.tar.gz
Algorithm Hash digest
SHA256 06ecb5b395dc74fadb2d2bac535307bcfb59cfba8002618ad2c1cf4204295bb6
MD5 4f523d763c6083b4bfe900dc12152bce
BLAKE2b-256 c862243fa06cd2401194378b2ddc10617ed6dc547723e97ecc063a842b65c343

See more details on using hashes here.

File details

Details for the file graphviz_overlay-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: graphviz_overlay-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.5 Linux/5.11.0-44-generic

File hashes

Hashes for graphviz_overlay-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04571f642ea6e8d27c64588235e5a720a523a4a3742dc09ac5b39ef33210fb17
MD5 708290e9b8329e1e1a03cc554d6ac229
BLAKE2b-256 409d5392c6f6279f3665ee59f51614062cf4c0d1c1c390f8517a08499f4a36ea

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