Metadata-Version: 2.4
Name: pytriskel
Version: 0.5.1
Summary: CFG visualization library
Keywords: cfg,visualization,reverse-engineering
Author-Email: Jack Royer <jack.royer@inria.fr>
License-Expression: MPL-2.0
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Disassemblers
Project-URL: Homepage, https://github.com/triskellib/triskel
Requires-Python: >=3.12
Description-Content-Type: text/markdown

![](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

Requires Python 3.12+ (the wheels target the stable ABI, so a single wheel works on every later Python version). The package ships with auto-generated type stubs.

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