-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.py
More file actions
35 lines (26 loc) · 1.15 KB
/
example.py
File metadata and controls
35 lines (26 loc) · 1.15 KB
1
2
3
4
5
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
"""
Life Path number from a birth date, the most important number in Pythagorean numerology.
Reduces month, day, and year independently, then detects Master Numbers (11, 22, 33)
and Karmic Debt (13, 14, 16, 19). Part of the RoxyAPI numerology domain.
"""
import os
from roxy_sdk import create_roxy
roxy = create_roxy(os.environ["ROXY_API_KEY"])
def main():
result = roxy.numerology.calculate_life_path(year=1990, month=7, day=15)
print("Life Path number:", result["number"]) # single digit 1-9, or Master 11, 22, 33
print("Type:", result["type"]) # single | master
print("Calculation:", result["calculation"])
print("Archetype:", result["meaning"]["title"])
print("Keywords:", ", ".join(result["meaning"]["keywords"]))
print()
print("Has Karmic Debt:", result["hasKarmicDebt"])
if result.get("karmicDebtNumber"):
debt = result["karmicDebtMeaning"]
print("Karmic Debt number:", result["karmicDebtNumber"])
print(" Theme:", debt["description"])
print(" Resolution:", debt["resolution"])
print()
print("Career:", result["meaning"]["career"][:140] + "...")
if __name__ == "__main__":
main()