thundergraph-model
Executable systems modeling in Python.
Model systems as System, Part, and Requirement types, compile dependency graphs, evaluate unit-aware expressions, bind external compute, and keep traceability in one strict library.
Installation
pip install thundergraph-model
Quick Start
from unitflow import kg
from tg_model import Part, System
from tg_model.execution import instantiate
class PayloadAnalysis(Part):
@classmethod
def define(cls, model):
payload = model.parameter_ref(PayloadSystem, "payload_kg")
model.attribute("payload_with_margin_kg", unit=kg, expr=payload * 1.1)
model.constraint("payload_limit", expr=payload <= 1000 * kg)
class PayloadSystem(System):
@classmethod
def define(cls, model):
model.parameter("payload_kg", unit=kg, required=True)
model.part("analysis", PayloadAnalysis)
cm = instantiate(PayloadSystem)
result = cm.evaluate(inputs={cm.root.payload_kg: 800 * kg})
print(result.passed)
print(result.outputs[cm.root.analysis.payload_with_margin_kg.stable_id])
What It Covers
- Unit-aware parameters, attributes, and executable constraints
- Structural modeling with
System,Part, and composableRequirementpackages - Requirement allocation and traceability
- Graph compilation and evaluation from Python-authored models
- External compute integration through
ExternalComputeBinding - Discrete behavior and scenario modeling
Documentation
Documentation and project information are available at thundergraph.ai/open-source/thundergraph-model.
Links
License
Apache 2.0
Metadata
Release files for thundergraph-model 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| thundergraph_model-1.5.0.tar.gz | 1.9 MB | Without provenance | Details for thundergraph_model-1.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thundergraph_model-1.5.0-py3-none-any.whl | Python 3 | none | any | Details for thundergraph_model-1.5.0-py3-none-any.whl |
Total release size: 2.0 MB
Release files / thundergraph_model-1.5.0.tar.gz
| Download URL | thundergraph_model-1.5.0.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89462129d756f88588699b5689b4036bcbcbe22fc36a68b43933cb4960fceddf
|
|
BLAKE2b-256 checksum How to use checksums |
c7419648d2fb46eee4601c63790bc0f023ab73c1bc8dcf69bf95e51f357ac0be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|
Release files / thundergraph_model-1.5.0-py3-none-any.whl
| Download URL | thundergraph_model-1.5.0-py3-none-any.whl |
|---|---|
| Size | 100.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cef2eb9dad4a28d4b0d4290341c4f6ff682c4ec52ba251d381001a11082c46ac
|
|
BLAKE2b-256 checksum How to use checksums |
8b77a90e03da37238dfb8ff9c2dbeb68663f9174b33624c26507e0f9a340bce9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|
Security for thundergraph-model 1.5.0
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.