API Reference: Enums
Planet Enum
enums
Enums module for ndastro_engine.
This module provides access to all enum types used in ndastro calculations: - Houses: Astrological houses - Natchaththirams: Nakshatra (lunar mansion) enumerations - Planets: Planetary bodies - Rasis: Zodiac signs (rasis)
Houses
Bases: IntEnum
Enum to hold houses.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/house_enum.py
owner
property
Get the owner of a given house.
Returns:
| Name | Type | Description |
|---|---|---|
Planets |
Planets
|
The owner of the house. |
__str__()
Natchaththirams
Bases: Enum
Enum to hold stars.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/nakshatra_enum.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
owner
property
Return the owner (planet) of the star.
Returns:
| Name | Type | Description |
|---|---|---|
str |
Planets
|
The name of the planet that owns the star. |
__str__()
Return the display name of the star.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The display name of the star. |
to_list()
staticmethod
Convert enum to list of enum item name.
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: list of enum item name |
to_string(num)
staticmethod
Convert star number to display name of the star.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num
|
int
|
the star number |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
return the star name |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/nakshatra_enum.py
Planets
Bases: IntEnum
Enum to hold planets.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/planet_enum.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |
code
property
Return the planet code.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
the planet code |
color
property
Return the planet color code.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
the planet color code |
from_code(code)
staticmethod
Convert planet code to planet enum.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
code
|
str
|
the planet code |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Planets |
Planets
|
the corresponding planet enum |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/planet_enum.py
to_list()
staticmethod
Convert planet enum to list of planet name.
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: list of planet names |
to_string(num)
staticmethod
Convert planet number to display name of the planet.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num
|
int
|
the planet number |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
return the planet name |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/planet_enum.py
Rasis
Bases: IntEnum
Enum to represent Rasis.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/rasi_enum.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | |
owner
property
Get the owner planet of a given Rasi.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rasi
|
int
|
The Rasi number. |
required |
Returns:
| Type | Description |
|---|---|
Planets | None
|
Planets | None: The owner planet of the Rasi or None if invalid Rasi. |
__str__()
Return a localized string representation of the Rasi.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Localized name of the Rasi. |
from_string(rasi)
classmethod
Convert a Rasi name to its corresponding enum member.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rasi
|
str
|
The name of the Rasi. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Rasis |
Rasis
|
The corresponding enum member. |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/rasi_enum.py
to_4x4list()
staticmethod
Get a 4x4 grid representation of Rasi names.
Returns:
| Type | Description |
|---|---|
list[list[str]]
|
list[list[str]]: 4x4 grid of Rasi names. |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/rasi_enum.py
to_list()
staticmethod
Get a list of all Rasi names.
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: List of all Rasi names. |
to_string()
classmethod
Convert a Rasi enum member to its localized display name.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Localized name of the Rasi. |
House Enum
enums
Enums module for ndastro_engine.
This module provides access to all enum types used in ndastro calculations: - Houses: Astrological houses - Natchaththirams: Nakshatra (lunar mansion) enumerations - Planets: Planetary bodies - Rasis: Zodiac signs (rasis)
Houses
Bases: IntEnum
Enum to hold houses.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/house_enum.py
owner
property
Get the owner of a given house.
Returns:
| Name | Type | Description |
|---|---|---|
Planets |
Planets
|
The owner of the house. |
__str__()
Natchaththirams
Bases: Enum
Enum to hold stars.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/nakshatra_enum.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
owner
property
Return the owner (planet) of the star.
Returns:
| Name | Type | Description |
|---|---|---|
str |
Planets
|
The name of the planet that owns the star. |
__str__()
Return the display name of the star.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The display name of the star. |
to_list()
staticmethod
Convert enum to list of enum item name.
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: list of enum item name |
to_string(num)
staticmethod
Convert star number to display name of the star.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num
|
int
|
the star number |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
return the star name |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/nakshatra_enum.py
Planets
Bases: IntEnum
Enum to hold planets.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/planet_enum.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |
code
property
Return the planet code.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
the planet code |
color
property
Return the planet color code.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
the planet color code |
from_code(code)
staticmethod
Convert planet code to planet enum.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
code
|
str
|
the planet code |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Planets |
Planets
|
the corresponding planet enum |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/planet_enum.py
to_list()
staticmethod
Convert planet enum to list of planet name.
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: list of planet names |
to_string(num)
staticmethod
Convert planet number to display name of the planet.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num
|
int
|
the planet number |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
return the planet name |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/planet_enum.py
Rasis
Bases: IntEnum
Enum to represent Rasis.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/rasi_enum.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | |
owner
property
Get the owner planet of a given Rasi.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rasi
|
int
|
The Rasi number. |
required |
Returns:
| Type | Description |
|---|---|
Planets | None
|
Planets | None: The owner planet of the Rasi or None if invalid Rasi. |
__str__()
Return a localized string representation of the Rasi.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Localized name of the Rasi. |
from_string(rasi)
classmethod
Convert a Rasi name to its corresponding enum member.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rasi
|
str
|
The name of the Rasi. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Rasis |
Rasis
|
The corresponding enum member. |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/rasi_enum.py
to_4x4list()
staticmethod
Get a 4x4 grid representation of Rasi names.
Returns:
| Type | Description |
|---|---|
list[list[str]]
|
list[list[str]]: 4x4 grid of Rasi names. |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/rasi_enum.py
to_list()
staticmethod
Get a list of all Rasi names.
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: List of all Rasi names. |
to_string()
classmethod
Convert a Rasi enum member to its localized display name.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Localized name of the Rasi. |
Nakshatra Enum
enums
Enums module for ndastro_engine.
This module provides access to all enum types used in ndastro calculations: - Houses: Astrological houses - Natchaththirams: Nakshatra (lunar mansion) enumerations - Planets: Planetary bodies - Rasis: Zodiac signs (rasis)
Houses
Bases: IntEnum
Enum to hold houses.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/house_enum.py
owner
property
Get the owner of a given house.
Returns:
| Name | Type | Description |
|---|---|---|
Planets |
Planets
|
The owner of the house. |
__str__()
Natchaththirams
Bases: Enum
Enum to hold stars.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/nakshatra_enum.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
owner
property
Return the owner (planet) of the star.
Returns:
| Name | Type | Description |
|---|---|---|
str |
Planets
|
The name of the planet that owns the star. |
__str__()
Return the display name of the star.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The display name of the star. |
to_list()
staticmethod
Convert enum to list of enum item name.
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: list of enum item name |
to_string(num)
staticmethod
Convert star number to display name of the star.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num
|
int
|
the star number |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
return the star name |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/nakshatra_enum.py
Planets
Bases: IntEnum
Enum to hold planets.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/planet_enum.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |
code
property
Return the planet code.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
the planet code |
color
property
Return the planet color code.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
the planet color code |
from_code(code)
staticmethod
Convert planet code to planet enum.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
code
|
str
|
the planet code |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Planets |
Planets
|
the corresponding planet enum |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/planet_enum.py
to_list()
staticmethod
Convert planet enum to list of planet name.
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: list of planet names |
to_string(num)
staticmethod
Convert planet number to display name of the planet.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num
|
int
|
the planet number |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
return the planet name |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/planet_enum.py
Rasis
Bases: IntEnum
Enum to represent Rasis.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/rasi_enum.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | |
owner
property
Get the owner planet of a given Rasi.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rasi
|
int
|
The Rasi number. |
required |
Returns:
| Type | Description |
|---|---|
Planets | None
|
Planets | None: The owner planet of the Rasi or None if invalid Rasi. |
__str__()
Return a localized string representation of the Rasi.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Localized name of the Rasi. |
from_string(rasi)
classmethod
Convert a Rasi name to its corresponding enum member.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rasi
|
str
|
The name of the Rasi. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Rasis |
Rasis
|
The corresponding enum member. |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/rasi_enum.py
to_4x4list()
staticmethod
Get a 4x4 grid representation of Rasi names.
Returns:
| Type | Description |
|---|---|
list[list[str]]
|
list[list[str]]: 4x4 grid of Rasi names. |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/rasi_enum.py
to_list()
staticmethod
Get a list of all Rasi names.
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: List of all Rasi names. |
to_string()
classmethod
Convert a Rasi enum member to its localized display name.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Localized name of the Rasi. |
Rasi Enum
enums
Enums module for ndastro_engine.
This module provides access to all enum types used in ndastro calculations: - Houses: Astrological houses - Natchaththirams: Nakshatra (lunar mansion) enumerations - Planets: Planetary bodies - Rasis: Zodiac signs (rasis)
Houses
Bases: IntEnum
Enum to hold houses.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/house_enum.py
owner
property
Get the owner of a given house.
Returns:
| Name | Type | Description |
|---|---|---|
Planets |
Planets
|
The owner of the house. |
__str__()
Natchaththirams
Bases: Enum
Enum to hold stars.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/nakshatra_enum.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
owner
property
Return the owner (planet) of the star.
Returns:
| Name | Type | Description |
|---|---|---|
str |
Planets
|
The name of the planet that owns the star. |
__str__()
Return the display name of the star.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The display name of the star. |
to_list()
staticmethod
Convert enum to list of enum item name.
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: list of enum item name |
to_string(num)
staticmethod
Convert star number to display name of the star.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num
|
int
|
the star number |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
return the star name |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/nakshatra_enum.py
Planets
Bases: IntEnum
Enum to hold planets.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/planet_enum.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |
code
property
Return the planet code.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
the planet code |
color
property
Return the planet color code.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
the planet color code |
from_code(code)
staticmethod
Convert planet code to planet enum.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
code
|
str
|
the planet code |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Planets |
Planets
|
the corresponding planet enum |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/planet_enum.py
to_list()
staticmethod
Convert planet enum to list of planet name.
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: list of planet names |
to_string(num)
staticmethod
Convert planet number to display name of the planet.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num
|
int
|
the planet number |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
return the planet name |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/planet_enum.py
Rasis
Bases: IntEnum
Enum to represent Rasis.
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/rasi_enum.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | |
owner
property
Get the owner planet of a given Rasi.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rasi
|
int
|
The Rasi number. |
required |
Returns:
| Type | Description |
|---|---|
Planets | None
|
Planets | None: The owner planet of the Rasi or None if invalid Rasi. |
__str__()
Return a localized string representation of the Rasi.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Localized name of the Rasi. |
from_string(rasi)
classmethod
Convert a Rasi name to its corresponding enum member.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rasi
|
str
|
The name of the Rasi. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Rasis |
Rasis
|
The corresponding enum member. |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/rasi_enum.py
to_4x4list()
staticmethod
Get a 4x4 grid representation of Rasi names.
Returns:
| Type | Description |
|---|---|
list[list[str]]
|
list[list[str]]: 4x4 grid of Rasi names. |
Source code in .venv/lib/python3.11/site-packages/ndastro_engine/rasi_enum.py
to_list()
staticmethod
Get a list of all Rasi names.
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: List of all Rasi names. |
to_string()
classmethod
Convert a Rasi enum member to its localized display name.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Localized name of the Rasi. |