Quick Dependency-based Computation
📖 Documentation: https://turbograph.docs.cern.ch/master
TurboGraph is a lightweight Python library for defining and computing values based on dependencies.
It builds a directed dependency graph automatically—leveraging either
the networkx or igraph backend—to ensure computations run in the correct order.
🚀 Quick Example
TurboGraph infers dependencies from function signatures:
from turbograph import compute
specifications = {
"a": 2,
"sum": lambda a, b: a + b, # "sum" depends on "a" and "b"
}
result = compute(specifications, ["sum"], {"b": 3})
print(result) # Output: {"sum": 5}
TurboGraph detects that "sum" depends on both "a" and "b"
and executes the computations accordingly.
📌 Check out the Quick-Start Guide for more details.
📥 Installation
TurboGraph requires Python ≥ 3.11 and supports NetworkX (≥2.5) and iGraph (≥0.10.0) as graph backends.
# Install with NetworkX backend
pip install "turbograph[networkx]"
# Or with the iGraph backend
pip install "turbograph[igraph]"
📚 For more installation options, check out the Installation Guide or Development Guide.
Credits
The TurboGraph logo was created using the following fonts
- Speedway – dafont.com/speedway.font
- Speed Solid – dafont.com/speed-solid.font
The multi-versioning approach for this documentation was largely inspired by the implementation in this repository, which is licensed under the Apache-2.0 license. I sincerely appreciate the author for sharing their work!
Metadata
Release files for turbograph 0.6.1
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 |
|---|---|---|---|---|
| turbograph-0.6.1-py3-none-any.whl | Python 3 | none | any | Details for turbograph-0.6.1-py3-none-any.whl |
Release files / turbograph-0.6.1-py3-none-any.whl
| Download URL | turbograph-0.6.1-py3-none-any.whl |
|---|---|
| Size | 35.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2282028ebfc8f9dce735e74e897445205b40939008a702868762cbd849df0cc
|
|
BLAKE2b-256 checksum How to use checksums |
35d8892524999eef3d4e3dc08eba3f965e5fae82d57d9ba524a72179261b384b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.3
|
Security for turbograph 0.6.1
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.