Constants
natal.const
Constants and utility functions for the natal package.
AspectMember
Body
ElementMember
ExtraMember
HouseMember
ModalityMember
PlanetMember
PolarityMember
SignMember
VertexMember
get_member(raw_data: dict, name: str) -> DotDict
Get a member from raw data by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
raw_data
|
dict
|
The raw data dictionary. |
required |
name
|
str
|
The name of the member. |
required |
Returns:
Name | Type | Description |
---|---|---|
DotDict |
DotDict
|
The member as a DotDict. |
Source code in natal/const.py
get_members(raw_data: dict) -> list[DotDict]
Get all members from raw data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
raw_data
|
dict
|
The raw data dictionary. |
required |
Returns:
Type | Description |
---|---|
list[DotDict]
|
list[DotDict]: A list of members as DotDicts. |