yera.apps.dataclasses
Dataclasses describing app signatures, metadata, and invocations.
Symbols
AppInput
One parameter of an app's signature, captured as plain data.
Built from an inspect.Parameter when the
@app decorator runs, then frozen
into AppMetadata.params
so the runtime, registry, and tooling can inspect the app's
inputs without re-reading the function object.
Attributes
Parameter name.
String rendering of the parameter's type annotation.
String rendering of the parameter kind (positional, keyword-only, etc.).
Whether the parameter has a default value.
The default value, or None if
has_default is False.
Methods
AppInput.from_parameter
from_parameter(
p: Parameter,
) → AppInputBuild an AppInput from an inspect.Parameter.
AppInstance
A specific invocation of an app.
An app can be called multiple times within a single run (e.g. a
nested app called in a loop); each call gets a unique
instance_id so events can be attributed to the right
invocation.
Attributes
The app's identifier (module-qualified name).
Counter distinguishing this invocation from other calls to the same app in the same run.
AppMetadata
Static description of an app, captured at decoration time.
Built once by the @app decorator
and registered with the app registry under identifier. Used
by the runtime, the console renderer, and any downstream tooling
that needs to introspect apps without holding the function
object.
Attributes
Display name (defaults to the function's __name__).
Fully-qualified module the app was defined in.
<module>.<name> — the unique key the registry
looks the app up by.
String rendering of the declared return type.
The wrapped function's docstring, if any.
Optional human-readable description passed to the decorator.
Methods
AppMetadata.make_instance
make_instance(
ix: int,
) → AppInstanceCreate an AppInstance for the ix-th invocation of this app.
AppMetadata.pretty_print
pretty_print() → strRender the app's metadata as a human-readable multi-line string.