Metadata-Version: 2.2
Name: pytriskel
Version: 0.1.4
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

<p align="center">
  <img width="50%" alt="Shows a black logo in light color mode and a white one in dark color mode." src="https://github.com/triskellib/triskel/blob/master/.github/assets/triskel_light.svg?raw=true">
</p>

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")
```
