-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathdemo_bhava_chart_data.py
More file actions
35 lines (23 loc) · 1 KB
/
demo_bhava_chart_data.py
File metadata and controls
35 lines (23 loc) · 1 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
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/API.html"
# 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.HouseSignName(HouseName.House1, birth_time)
Tools.Print(house1ZodiacSign)
# Get Planets in House 1 (Bhava Chart)
planetsInHouse1 = Calculate.PlanetsInHouseBasedOnSign(HouseName.House1, birth_time)
Tools.Print(planetsInHouse1)
# Get Planets in House 1 (Rasi Chart)
planetsInHouse1 = Calculate.PlanetsInHouseBasedOnSign(HouseName.House1, birth_time)
Tools.Print(planetsInHouse1)
# Get the sign for House 2
# ......