Python API

Auto-generated reference for the Python surface of the neml2 package, grouped by purpose. Each entry below links to one top-level module; classes and functions inside each module are listed on its page.

For narrative model-authoring material see Extension; the entries below are organised for reading existing code. The top-level neml2 namespace just re-exports names from the subpackages below, so it has no page of its own.

Typed tensor wrappers

The HIT-side catalog of each subpackage above is autogenerated into Reference → HIT syntax from the same docstrings; the entries here document the underlying Python classes.

Compilation and AOTI

See also: AOTI packages.

Adapters

CLI entry points

These modules back the neml2-run / neml2-inspect / neml2-syntax / neml2-compile / neml2-stub console scripts; end-user docs live in CLI utilities.