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 StdClass(IStdClass): (source)
Constructors: StdClass.fromDict(dictionary), StdClass(**kwargs)
Represent dynamically assigned attributes as a simple data object.
| Class Method | __init |
Rebuild the reserved-names set for every subclass. |
| Class Method | from |
Create a StdClass instance from a dictionary. |
| Method | __eq__ |
Compare this object with another for attribute equality. |
| Method | __hash__ |
Compute the hash value of the object based on its attributes. |
| Method | __init__ |
Initialize attributes from keyword arguments. |
| Method | __repr__ |
Return an unambiguous string representation for debugging. |
| Method | __str__ |
Return a readable string representation of the object. |
| Method | remove |
Remove one or more attributes from the object. |
| Method | to |
Convert the object's attributes to a dictionary. |
| Method | update |
Update the object's attributes dynamically. |
| Class Variable | RESERVED |
Attribute names reserved by the class and its inheritance hierarchy. |
Inherited from IStdClass:
| Class Variable | __slots__ |
Declare that this class introduces no additional instance slots. |
Create a StdClass instance from a dictionary.
| Parameters | |
dictionary:dict | Dictionary containing attribute names and values. |
| Returns | |
orionis.support.types.StdClass | A new StdClass instance with attributes set from the dictionary. |
Compute the hash value of the object based on its attributes.
Notes
Do not mutate attributes while the object is a dictionary key or set member: attribute changes can change its hash. Every stored value must itself be hashable.
| Returns | |
int | Hash value computed from the object's attributes. |
Return an unambiguous string representation for debugging.
| Returns | |
str | String representation of the object with its attributes. |
Return a readable string representation of the object.
| Returns | |
str | String showing the object's attributes. |
Remove one or more attributes from the object.
| Parameters | |
*attributes:str | Names of the attributes to remove. |
| Returns | |
None | No return value. |
| Raises | |
AttributeError | If any of the specified attributes do not exist. |
Convert the object's attributes to a dictionary.
| Returns | |
dict | A shallow copy of the object's attributes. |
Update the object's attributes dynamically.
| Parameters | |
**kwargs:object | Key-value pairs to update or add as attributes. |
| Returns | |
None | No return value. |
| Raises | |
ValueError | If an attribute name is reserved or conflicts with a class method. |