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
Map resource classes to the policy classes protecting them.
Lookups walk the method resolution order once and memoise the result, so an inherited policy costs a single dictionary read after the first request that needed it.
Concurrency
Registration happens during application boot. The lookup cache is a pure function of the registry, so a concurrent first lookup may compute the same value twice without any observable difference.
| Method | __init__ |
Initialise an empty registry. |
| Method | bindings |
Return a copy of the registered resource to policy bindings. |
| Method | policy |
Return the policy protecting a resource class. |
| Method | register |
Bind a policy class to a resource class. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | __lookup |
Undocumented |
| Instance Variable | __policies |
Undocumented |