LEAPP — Lightweight Export Annotations for Policy Pipelines
LEAPP is a Python package for tracing and exporting multi-step PyTorch computational graphs. Annotate your existing code with lightweight markers, and LEAPP captures the graph structure, exports each stage as an individual model, and generates a deployment-ready YAML specification.
LEAPP is designed for pipelines that chain multiple PyTorch models or processing stages together — where you need to export the whole pipeline, not just a single model. It traces real execution of your code, records which tensors flow between stages, exports each stage independently, and writes a YAML that describes how to wire everything back together at inference time.
Installation
pip install leapp
LEAPP requires Python 3.10+ and PyTorch 2.6.0+.
Quick example
import torch
import leapp
from leapp import annotate
leapp.start(name="my_pipeline")
x = annotate.input_tensors("preprocess", {"obs": torch.randn(8)})
features = (x - x.mean()) / (x.std() + 1e-6)
annotate.output_tensors("preprocess", {"features": features}, export_with="jit")
features = annotate.input_tensors("policy", {"features": features})
action = torch.tanh(features @ torch.randn(8, 4))
annotate.output_tensors("policy", {"action": action}, export_with="onnx")
leapp.stop()
leapp.compile_graph()
Running this produces a my_pipeline/ directory containing the exported models, a YAML pipeline spec, and, on Python 3.11 or later, a PNG graph visualization. On Python 3.10, LEAPP warns and skips visualization while completing the rest of the export.
Documentation
Full guides and API reference live at https://nvidia-isaac.github.io/leapp/:
- Getting started — install, first pipeline, generated output
- Guides — node patterns, export options, feedback graphs, semantic data, runtime validation
- API reference
License
Copyright (c) 2026, NVIDIA Corporation & affiliates. Licensed under the Apache License, Version 2.0. See LICENSE and thirdparty.txt.
Metadata
Release files for leapp 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| leapp-0.7.2-py3-none-any.whl | Python 3 | none | any | Details for leapp-0.7.2-py3-none-any.whl |
Release files / leapp-0.7.2-py3-none-any.whl
| Download URL | leapp-0.7.2-py3-none-any.whl |
|---|---|
| Size | 222.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86c1581eb09ba1f4b98cd980e19e771682ce3a7ac6766ec087d37496bf5579e0
|
|
BLAKE2b-256 checksum How to use checksums |
f77e73deb04c334f3f18eb886d3d8d447f8f278bcf0a624c3e86f2031da32c88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for leapp 0.7.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.