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.

class documentation

Represent a CORS configuration compatible with Starlette CORSMiddleware.

Method __post_init__ Normalize allowlists, validate CORS options and own supplied mutable lists.
Method __validateAllowMethods Validate that all items in 'allow_methods' are valid HTTP methods or a wildcard.
Instance Variable allow_credentials Whether to allow credentials (cookies, authorization headers, etc.). Defaults to False.
Instance Variable allow_headers List of allowed HTTP headers. Defaults to ["*"] to allow all headers.
Instance Variable allow_methods List of allowed HTTP methods. Defaults to ["*"] to allow all methods.
Instance Variable allow_origin_regex Regular expression to match allowed origins. Defaults to None.
Instance Variable allow_origins List of allowed origins. Defaults to ["*"] to allow all origins.
Instance Variable expose_headers List of headers exposed to the browser. Defaults to [].
Instance Variable max_age Maximum time (in seconds) for the preflight request to be cached. Defaults to 600.

Inherited from BaseEntity:

Class Method _cachedFieldMetadata Retrieve field definitions and normalized types cached by class.
Method __init__ Initialize declared fields and public extra attributes.
Method _dynamicAttributes Return public instance attributes that are not declared fields.
Method _validateExtraNames Validate names and storage for public extra attributes.
Method getFields Describe declared fields and, optionally, dynamic attributes.
Method toDict Return a recursively copied dictionary of declared and extra values.
Class Variable __slots__ Declare that this class introduces no additional instance slots.
Class Variable _orionis_field_metadata Cache declared fields and normalized type names for each concrete class.
def __post_init__(self): (source)

Normalize allowlists, validate CORS options and own supplied mutable lists.

Returns
NoneThis method does not return a value.
def __validateAllowMethods(self): (source)

Validate that all items in 'allow_methods' are valid HTTP methods or a wildcard.

Checks that each entry in 'allow_methods' is a string and matches a valid HTTP method or is the wildcard '*'. Raises a TypeError or ValueError if invalid.

Returns
NoneThis method does not return a value.
Raises
TypeErrorIf any item in 'allow_methods' is not a string.
ValueErrorIf any item is not a valid HTTP method or the wildcard.
allow_credentials: bool = (source)

Whether to allow credentials (cookies, authorization headers, etc.). Defaults to False.

allow_headers: list[str] = (source)

List of allowed HTTP headers. Defaults to ["*"] to allow all headers.

allow_methods: list[str] = (source)

List of allowed HTTP methods. Defaults to ["*"] to allow all methods.

allow_origin_regex: str | None = (source)

Regular expression to match allowed origins. Defaults to None.

allow_origins: list[str] = (source)

List of allowed origins. Defaults to ["*"] to allow all origins.

expose_headers: list[str] = (source)

List of headers exposed to the browser. Defaults to [].

max_age: int | None = (source)

Maximum time (in seconds) for the preflight request to be cached. Defaults to 600.