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 command-line argument definition.

This entity encapsulates the configuration required to register an argument in an argparse.ArgumentParser.

Parameters
name_or_flagsName or flags for the argument (e.g. "--file" or ("-f", "--file")).
actionAction to perform when the argument is encountered.
nargsNumber of arguments to consume ('?', '*', '+', or integer).
constConstant value used by actions like 'store_const'.
defaultDefault value if the argument is not provided.
type_Function used to convert the argument value.
choicesAllowed values for the argument.
requiredWhether the argument is required.
helpHelp text for the argument.
metavarName used in help messages.
destAttribute name where the parsed value is stored.
versionVersion string used with action="version".
extraAdditional parameters forwarded to add_argument.
Method __post_init__ Validate and normalize the argument definition.
Method addToParser Add this argument to an ArgumentParser.
Class Variable action Undocumented
Class Variable choices Undocumented
Class Variable const Undocumented
Class Variable default Undocumented
Class Variable dest Undocumented
Class Variable extra Undocumented
Class Variable help Undocumented
Class Variable metavar Undocumented
Class Variable name_or_flags Undocumented
Class Variable nargs Undocumented
Class Variable required Undocumented
Class Variable type_ Undocumented
Class Variable version Undocumented

Inherited from BaseEntity:

Class Method _cachedFieldMetadata Retrieve field definitions and normalized types cached by class.
Method getFields Describe field names, normalized types, defaults, and metadata.
Method toDict Convert the dataclass instance to a recursively copied dictionary.
Class Variable __slots__ Undocumented
def __post_init__(self): (source)

Validate and normalize the argument definition.

Ensures that all fields are valid and normalized for use with argparse.ArgumentParser.

Returns
NoneThis method does not return a value.
def addToParser(self, parser: argparse.ArgumentParser): (source)

Add this argument to an ArgumentParser.

Registers the argument with the provided parser using the stored configuration.

Parameters
parser:argparse.ArgumentParserParser instance where the argument will be registered.
Returns
NoneThis method does not return a value.
action: str | ArgumentAction | None, optional = (source)

Undocumented

choices: Iterable[Any] | None, optional = (source)

Undocumented

const: Any, optional = (source)

Undocumented

default: Any, optional = (source)

Undocumented

dest: str | None, optional = (source)

Undocumented

extra: dict[str, Any], optional = (source)

Undocumented

help: str | None, optional = (source)

Undocumented

metavar: str | tuple[str, ...] | None, optional = (source)

Undocumented

name_or_flags: str | Iterable[str] = (source)

Undocumented

nargs: int | str | None, optional = (source)

Undocumented

required: bool, optional = (source)

Undocumented

type_: Callable[[str], Any] | None, optional = (source)

Undocumented

version: str | None, optional = (source)

Undocumented