-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.py
More file actions
52 lines (41 loc) · 1.9 KB
/
Copy pathexample.py
File metadata and controls
52 lines (41 loc) · 1.9 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"""
Human Design API: full bodygraph chart in one call. Energy type, strategy,
inner authority, profile, definition, incarnation cross, nine centers, defined
channels, and all 26 gate activations. Roxy Ephemeris, verified against NASA
JPL Horizons. No coordinates needed, only the birth instant.
"""
import os
from roxy_sdk import create_roxy
roxy = create_roxy(os.environ["ROXY_API_KEY"])
def main():
result = roxy.human_design.generate_bodygraph(
date="1990-07-15",
time="13:00:00",
timezone="America/New_York",
)
print(f"Type: {result['type']} | Strategy: {result['strategy']}")
print(f"Authority: {result['authority']}")
print(f"Signature: {result['signature']} | Not-self: {result['notSelf']}")
print(f"Profile: {result['profile']} | Definition: {result['definition']}")
cross = result["incarnationCross"]
print(f"Incarnation cross: {cross['name']} [{'/'.join(map(str, cross['gates']))}]")
print("\nCenters:")
for c in result["centers"]:
state = "DEFINED" if c["defined"] else "open"
gates = ", ".join(map(str, c["gates"]))
print(f" {c['name']:<14} {state:<8} gates [{gates}]")
print("\nDefined channels:")
for ch in result["channels"]:
print(f" {ch['gateA']}-{ch['gateB']} {ch['name']} ({ch['circuit']})")
print("\nPersonality activations (conscious):")
for g in (g for g in result["gates"] if g["side"] == "personality"):
hexagram = g["ichingHexagram"]
print(
f" {g['planet']:<11} gate {g['gate']:>2}.{g['line']} {g['gateName']}"
f" / hexagram {hexagram['number']} {hexagram['english']}"
)
print("\nDesign activations (unconscious, 88 degrees of solar arc before birth):")
for g in (g for g in result["gates"] if g["side"] == "design"):
print(f" {g['planet']:<11} gate {g['gate']:>2}.{g['line']} {g['gateName']}")
if __name__ == "__main__":
main()