Skip to content

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): nf launches 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): nf exports 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

  1. Author: Define an App containing one or more Stacks, provider configurations, resources, data sources, and outputs—typically inside a factory function whose parameters become typed CLI inputs (++env=prod).
  2. Register: Point [tool.nf].apps in pyproject.toml at your module and app object or factory (for example, apps = ["app:app"]).
  3. 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.
  4. 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 plan converges 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