Metadata-Version: 2.4
Name: pytriskel
Version: 0.4.1
Summary: CFG visualization library
Home-page: https://github.com/triskellib/triskel
Author: Jack Royer
Author-email: jack.royer@inria.fr
License: MPL2.0
Keywords: cfg,visualization,reverse-engineering
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: summary

![](https://github.com/triskellib/triskel/raw/master/.github/assets/triskel_light.png)

Python bindings for the [triskel](https://github.com/triskellib/triskel) library.

## Getting started

```
$ pip install pytriskel
```

```python
from pytriskel.pytriskel import *

builder = make_layout_builder()

# Build the graph
n1 = builder.make_node("Hello")
n2 = builder.make_node("World")
builder.make_edge(n1, n2)

# Measure node size using font size
png_renderer = make_png_renderer()
builder.measure_nodes(png_renderer)

# Export an image
layout = builder.build()
layout.save(png_renderer, "out.png")
```
