fhelium.compile.frontend._objects
Inline Python callable objects through descriptor-aware captured state reads.
python_callable
function View source
python
def python_callable(source) -> Callable[..., Any]: ...1
Return a synchronous Python function or bound method for one callable.
unwrap
function View source
python
def unwrap(value) -> Any: ...1
Recover an object's identity for capture-time Python metadata operations.
StaticObject
class View source
python
StaticObject(value: object, capture: Any)1
Interpret supported Python descriptors on a read-only captured receiver.
Internal binding storage is accessed through object primitives. Every normal attribute lookup resolves against the user's object, including names also used internally by the frontend. Tensor fields become materials when read.
StaticMapping
class View source
python
StaticMapping()1
Bases: StaticObject
Read mapping entries lazily and preserve the original mapping's methods.