Skip to main content

Graphviz utility functions.

Project description

Graphviz utility functions.

Latest release 20220805.1: New DOTNodeMixin, a mixin for classes which can be rendered as a DOT node.

See also the [https://www.graphviz.org/documentation/](graphviz documentation) and particularly the [https://graphviz.org/doc/info/lang.html](DOT language specification) and the [https://www.graphviz.org/doc/info/command.html](dot command line tool).

Class DOTNodeMixin

A mixin providing methods for things which can be drawn as nodes in a DOT graph description.

Function gvprint(dot_s, file=None, fmt=None, layout=None, **dot_kw)

Print the graph specified by dot_s, a graph in graphViz DOT syntax, to file (default sys.stdout) in format fmt using the engine specified by layout (default 'dot').

If fmt is unspecified it defaults to 'png' unless file is a terminal in which case it defaults to 'sixel'.

This uses the graphviz utility dot to draw graphs. If printing in SIXEL format the img2sixel utility is required, see https://saitoha.github.io/libsixel/.

Function quote(s)

Quote a string for use in DOT syntax. This implementation passes identifiers and sequences of decimal numerals through unchanged and double quotes other strings.

Release Log

Release 20220805.1: New DOTNodeMixin, a mixin for classes which can be rendered as a DOT node.

Release 20220805: Initial PyPI release.

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

cs.gvutils-20220805.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

cs.gvutils-20220805.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file cs.gvutils-20220805.1.tar.gz.

File metadata

  • Download URL: cs.gvutils-20220805.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.1 readme-renderer/30.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.3.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for cs.gvutils-20220805.1.tar.gz
Algorithm Hash digest
SHA256 0b775b0d4080aab24d503cd205e235435820717f72924e2b19933d5e3fd393f4
MD5 8002a5e9fb926c1791241a57d11ee15b
BLAKE2b-256 bada80f27738cd3a201f0de32faba50988af17f5b31ee276c6e9812835140b85

See more details on using hashes here.

File details

Details for the file cs.gvutils-20220805.1-py3-none-any.whl.

File metadata

  • Download URL: cs.gvutils-20220805.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.1 readme-renderer/30.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.3.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for cs.gvutils-20220805.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c34bdd5eea7742e5b302dd8d8832dfa822b5e581cf9a72a19c1a1da5ae37280
MD5 9dd951ec7688cfd6191dc43bccbd2663
BLAKE2b-256 f461d9f70bb1c9cfa26623b9505b6173be2341bd5a67989c5f630ec26faa6cf7

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