THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
module documentation
Undocumented
| Function | _build |
Categorize signature parameters as resolved or unresolved dependencies. |
| Function | _cached |
Return the cached dependency signature for target. |
| Function | _get |
Return dependency metadata without caching a bound method's receiver. |
| Function | _get |
Return the cached inspect signature for a target. |
| Function | _resolve |
Resolve a parameter annotation into its module, name, and type components. |
| Function | _resolve |
Resolve available string annotations in a callable signature. |
| Function | _resolve |
Resolve one string hint independently of other unavailable references. |
| Constant | _ANY |
Undocumented |
| Constant | _ANY |
Undocumented |
| Constant | _SKIP |
Undocumented |
| Constant | _SKIP |
Undocumented |
Categorize signature parameters as resolved or unresolved dependencies.
| Parameters | |
signature:inspect.Signature | The signature object to analyze. |
| Returns | |
Signature | An object containing categorized resolved and unresolved parameter dependencies. |
@functools.lru_cache( maxsize=1024)
def _cached_resolved_signature(target: Any, *, bound: bool = False) -> Signature:
(source)
¶
Return the cached dependency signature for target.
Notes
Cached exceptions are not stored by functools.lru_cache, so failures are raised again on subsequent calls.
| Parameters | |
target:Any | Object whose inspectable signature is resolved into dependencies. |
bound:bool, optional | Whether the first positional parameter is supplied by method binding. |
| Returns | |
Signature | Dependency signature built from the target's inspectable signature. |
| Raises | |
ValueError | Raised when the target signature cannot be inspected. |
Return the cached inspect signature for a target.
| Parameters | |
target:Any | Callable, method, function, or class to inspect. |
| Returns | |
inspect.Signature | Cached signature object for the provided target. |
Resolve a parameter annotation into its module, name, and type components.
| Parameters | |
annotation:Any | The annotation object from an inspect.Parameter. May be a string (forward reference) or an actual type/class. |
| Returns | |
tuple[str, str, Any] | A three-element tuple (module_name, class_name, type_or_annotation) where module_name and class_name identify the annotation's origin, and type_or_annotation is the resolved type (or str for forward references). |
def _resolve_future_annotations(target:
Any, signature: inspect.Signature) -> inspect.Signature:
(source)
¶
Resolve available string annotations in a callable signature.
| Parameters | |
target:Any | Callable declaring the annotations. |
signature:inspect.Signature | Signature whose parameters may contain string annotations. |
| Returns | |
inspect.Signature | Signature with available types substituted and defaults preserved. |
Undocumented
| Value |
|