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.
package documentation
Group the auth tokens components and public imports.
| Module | functions |
Provide auth tokens operations. |
| Module | lookup |
Provide auth tokens operations through lookup_owner. |
| Module | repository |
Persist personal access tokens through the Orionis query builder. |
| Module | schema |
Provide auth tokens operations through build_tokens_table. |
From __init__.py:
| Class | |
Persist personal access tokens through the Orionis query builder. |
| Function | __dir__ |
List loaded attributes and declared public exports. |
| Function | __getattr__ |
Resolve and cache a public package export. |
| Function | generate |
Generate the plain text secret of a personal access token. |
| Function | hash |
Derive the value persisted for a personal access token. |
| Constant | _EXPORTS |
Public export names mapped to their defining modules and attributes. |
Resolve and cache a public package export.
| Parameters | |
name:str | Public attribute requested from this package. |
| Returns | |
object | Exported object from its defining module. |
| Raises | |
AttributeError | If the requested attribute is not exported. |
Generate the plain text secret of a personal access token.
| Parameters | |
size:int | Number of random bytes backing the secret. The returned string is longer because it is URL-safe base64 encoded. |
| Returns | |
str | Cryptographically secure random string. secrets is used on purpose: random is not suitable for credentials. |
Derive the value persisted for a personal access token.
Only this digest reaches the database, so a leaked row never exposes a usable credential. SHA-256 is appropriate here because the input is already high entropy random data, unlike a user chosen password.
| Parameters | |
secret:str | Plain text token presented by the client. |
| Returns | |
str | Hexadecimal SHA-256 digest of the secret, 64 characters long. |
Public export names mapped to their defining modules and attributes.
| Value |
|