-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdemo_bhava_chart_data.py
35 lines (23 loc) · 1.06 KB
/
demo_bhava_chart_data.py
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
from vedastro import * # install via pip
# THIS DEMO CALCULATES DATA NEEDED TO MAKE BHAVA CHART
# PART 0 : Set API key
Calculate.SetAPIKey('FreeAPIUser') # ⚡unlimited speed API key from "vedastro.org/Account"
#PART 1 : PREPARE NEEDED DATA
#-----------------------------------
# set birth location
geolocation = GeoLocation("Tokyo, Japan", 139.83, 35.65)
# group all birth time data together (day/month/year)
birth_time = Time("23:40 31/12/2010 +08:00", geolocation)
#PART 2 : CALCULATE DATA FOR CHART
#-----------------------------------
# Get the sign for House 1
house1ZodiacSign = Calculate.HouseZodiacSign(HouseName.House1, birth_time)
print(json.dumps(house1ZodiacSign, indent=4))
# Get Planets in House 1 (Bhava Chart)
planetsInHouse1 = Calculate.PlanetsInHouse(HouseName.House1, birth_time)
print(json.dumps(planetsInHouse1, indent=4))
# Get Planets in House 1 (Rasi Chart)
planetsInHouse1BasedOnSign = Calculate.PlanetsInHouseBasedOnSign(HouseName.House1, birth_time)
print(json.dumps(planetsInHouse1BasedOnSign, indent=4))
# Get the sign for House 2
# ......