ORIONIS API REFERENCE

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 _baggage Check W3C baggage grammar without interpreting application values.
Function _capability_settings Validate the nested settings of a known client capability.
Function _trace_parent Accept W3C version zero and forward-compatible future versions.
Function _trace_state Check ordered tracestate members, including unique vendor keys.
Function validate_client_capabilities Validate known capabilities without closing the protocol's open set.
Function validate_implementation Check the standard client/server implementation record.
Function validate_meta_key Check the specification's prefix and name grammar.
Function validate_metadata Preserve unknown metadata while validating its names and trace formats.
Constant _LABEL Undocumented
Constant _MAX_TRACE_MEMBERS Undocumented
Constant _MAX_TRACE_VALUE Undocumented
Constant _META_KEY Undocumented
Constant _NAME Undocumented
Constant _STATE_KEY Undocumented
Constant _TOKEN Undocumented
Constant _TRACE_PARENT Undocumented
def _baggage(value: str) -> bool: (source)

Check W3C baggage grammar without interpreting application values.

Parameters
value:strValue to inspect, transform or validate.
Returns
boolResult of the operation described above.
def _capability_settings(key: str, value: Mapping[str, object], children: tuple[str, ...]): (source)

Validate the nested settings of a known client capability.

Parameters
key:strCapability name.
value:Mapping[str, object]Settings advertised by the client.
children:tuple[str, ...]Known child settings for closed capability names.
Returns
NoneNested settings and extension names have been checked.
Raises
ValueErrorIf a setting is not a mapping or an extension name is invalid.
def _trace_parent(value: str) -> bool: (source)

Accept W3C version zero and forward-compatible future versions.

Parameters
value:strValue to inspect, transform or validate.
Returns
boolResult of the operation described above.
def _trace_state(value: str) -> bool: (source)

Check ordered tracestate members, including unique vendor keys.

Parameters
value:strValue to inspect, transform or validate.
Returns
boolResult of the operation described above.
def validate_client_capabilities(capabilities: Mapping[str, object]): (source)

Validate known capabilities without closing the protocol's open set.

Parameters
capabilities:Mapping[str, object]Value supplied for capabilities.
Returns
NoneComplete the documented operation without returning a value.
def validate_implementation(value: object): (source)

Check the standard client/server implementation record.

Parameters
value:objectValue to inspect, transform or validate.
Returns
NoneComplete the documented operation without returning a value.
def validate_meta_key(key: str, *, extension: bool = False): (source)

Check the specification's prefix and name grammar.

Parameters
key:strValue supplied for key.
extension:boolValue supplied for extension.
Returns
NoneComplete the documented operation without returning a value.
def validate_metadata(metadata: object, *, allow_reserved: bool = True): (source)

Preserve unknown metadata while validating its names and trace formats.

Parameters
metadata:objectMetadata associated with the current operation.
allow_reserved:boolValue supplied for allow_reserved.
Returns
NoneComplete the documented operation without returning a value.

Undocumented

Value
'[A-Za-z](?:[A-Za-z0-9-]*[A-Za-z0-9])?'
_MAX_TRACE_MEMBERS: int = (source)

Undocumented

Value
32
_MAX_TRACE_VALUE: int = (source)

Undocumented

Value
256
_META_KEY = (source)

Undocumented

Value
re.compile(f'(?:(?:{_LABEL})(?:\\.{_LABEL})*/)?{_NAME}\\Z')

Undocumented

Value
'(?:[A-Za-z0-9](?:[A-Za-z0-9_.-]*[A-Za-z0-9])?)?'
_STATE_KEY = (source)

Undocumented

Value
re.compile(r'(?:[a-z][a-z0-9_\*/-]{,255}|[a-z0-9][a-z0-9_\*/-]{,240}@[a-z][a-z0-↵
9_\*/-]{,13})\Z')

Undocumented

Value
re.compile(r'[!#\$%&\'\*\+\.\^_`\|~0-9A-Za-z-]+\Z')
_TRACE_PARENT = (source)

Undocumented

Value
re.compile(r'([0-9a-f]{2})-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})(.*)\Z')