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
Ensure a URL points at a hostname that currently resolves.
The hostname is extracted from the URL and looked up through the system resolver, so the check succeeds only when an A or AAAA record exists. The lookup blocks the calling thread.
| Method | enforce |
Validate a field value as an active URL. |
| Async Method | enforce |
Resolve a URL hostname without blocking the current event loop. |
| Class Variable | __code__ |
Undocumented |
| Class Variable | __message__ |
Undocumented |
| Class Variable | __slots__ |
Undocumented |
Inherited from Rule:
| Method | __init__ |
Initialize the rule with an optional custom failure message. |
| Method | validate |
Validate the field value and return a failure when invalid. |
| Async Method | validate |
Await the rule and describe an invalid field value. |
| Instance Variable | _code |
Undocumented |
| Instance Variable | _message |
Undocumented |
overrides
orionis.schemas.rule.Rule.enforceAsyncResolve a URL hostname without blocking the current event loop.
| Parameters | |
field:str | Field name associated with the value. |
value:object | URL to inspect, or a value left to type validation. |
instance:object | Schema instance owning the field value. |
| Returns | |
bool | Whether the hostname resolves or the value is not a string. |