What is Netherframe?
Netherframe is an infrastructure-as-code framework for Python. You describe desired infrastructure using ordinary Python and typed classes generated from Terraform provider schemas, and Netherframe plans, verifies, and applies changes directly against those provider binaries over gRPC.
Two ways to run the same Python app
- Hybrid execution (default):
nflaunches Terraform provider binaries directly over gRPC, builds the dependency graph, checks policies, manages state, and handles recovery. You do not need Terraform or OpenTofu installed. - Legacy compatibility (
nf synth):nfexports Terraform JSON under.nf.out/for teams that must keep an existing Terraform or OpenTofu runner in charge of execution and state.
Both modes use the same Python constructs and typed provider bindings. See Choose your workflow and the feature matrix for a detailed comparison.
How a run works
- Author: Define an
Appcontaining one or moreStacks, provider configurations, resources, data sources, and outputs—typically inside a factory function whose parameters become typed CLI inputs (++env=prod). - Register: Point
[tool.nf].appsinpyproject.tomlat your module and app object or factory (for example,apps = ["app:app"]). - Plan: Run
nf plan --app <selector> --out reviewed-plan.json. Netherframe refreshes managed objects from providers, computes changes in dependency order, runs checks, and writes an immutable, digest-verified plan artifact. - Apply: Review the plan and run
nf apply --app <selector> --plan-file reviewed-plan.json. Netherframe executes provider changes in parallel within dependency order, persists state, runs finalizers, and applies your recovery strategy if anything fails.
App code versus state
Your Python app describes desired state—the resources, attributes, references, checks, and lifecycle rules you want to exist. State records the live objects Netherframe already manages, their provider identities, private metadata, and deployment inputs.
Keeping desired configuration and recorded state cleanly separated means:
- Re-running
nf planconverges to no changes once infrastructure matches code. - Moving an app to a new state backend or taking over pre-existing cloud objects is always an explicit, reviewed operation (migration or adoption), never an accidental takeover.
Where to go next
- See what makes Netherframe different: Why Netherframe.
- Explore the internals: How Netherframe works (Architecture).
- Try it yourself: Tutorial 1: Run your first hybrid app.
- Dive into the object model: Apps, stacks, resources, and providers.