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

class ActiveUrl(Rule): (source)

Constructor: ActiveUrl(message)

View In Hierarchy

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. Resolution is awaited without blocking the calling event loop.

Async Method enforce Resolve a URL hostname without blocking the current event loop.
Class Variable __code__ active_url.
Class Variable __message__ Value must be a URL with a resolvable hostname..
Class Variable __slots__ Declare that this class introduces no additional instance slots.

Inherited from Rule:

Method __init__ Initialize the rule with an optional custom failure message.
Method __init_subclass__ Require asynchronous enforcement on every rule subclass.
Async Method validate Validate the field by awaiting its asynchronous enforcement.
Instance Variable _code Machine-readable status or error code.
Instance Variable _message Override message used when validation fails.
async def enforce(self, field: str, value: object, instance: object) -> bool: (source)

Resolve a URL hostname without blocking the current event loop.

Parameters
field:strField name associated with the value.
value:objectURL to inspect, or a value left to type validation.
instance:objectSchema instance owning the field value.
Returns
boolWhether the hostname resolves or the value is not a string.
__code__: str = (source)

active_url.

__message__: str = (source)

Value must be a URL with a resolvable hostname..

__slots__: tuple = (source)

Declare that this class introduces no additional instance slots.