-
Notifications
You must be signed in to change notification settings - Fork 19
/
demo_general_calculators.py
50 lines (33 loc) · 1.65 KB
/
demo_general_calculators.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import VedAstro # install via pip
from VedAstro.Library import * # reference full library
#PART I : PREPARE NEEDED DATA
#-----------------------------------
# set birth location
geolocation = GeoLocation(location="Tokyo", latitude=35.6895, longitude=139.6917).geolocation
# set birth time
date = "31/12/2010" # day/month/year
date2 = "04/01/1992" # day/month/year
time = "23:40" # 24 Hour
time_offset = "+08:00" # standard timezone at birth location
# group all birth time data together
birth_romeo = Time(date, time, time_offset, geolocation).time_object
birth_juliet = Time(date2, time, time_offset, geolocation).time_object
# person profile (optional)
id = "" # random unique ID
user_id = "" # owner of Person profile (API Key/User ID)
# group person data together
romeo = Person(id=id, user_id=user_id, name="Romeo", gender=Gender.Male, birth_time=birth_romeo, notes="").person
juliet = Person(id=id, user_id=user_id, name="Juliet", gender=Gender.Female, birth_time=birth_juliet, notes="").person
#PART II : MAKE CALCULATION
#-----------------------------------
# option 1 : calculate if an astrological event is occuring
saturn_aries = VedAstro.HoroscopeCalculatorMethods.SunInLeo(birth_romeo)
# print the results
occurrence = saturn_aries.Occuring
print(f"Saturn In Aries occuring on {date} : {occurrence}")
# option 2 : get zodiac sign behind a planet (astronomical)
lordOfHouse1 = VedAstro.Calculate.LordOfHouse(VedAstro.HouseName.House1, birth_romeo)
print(f"House 1 Lord : {lordOfHouse1}") # Outputs: Mercury
# option 3 : check match using kuta system (16 astro factors)
test = GetNewMatchReport(romeo,juliet,"101")
print(f"Total Match Score : {test.KutaScore}%")