VedAstro / VedAstro.Python

A Python Libray for Vedic Astrology calculations.
https://vedastro.org
MIT License
18 stars 14 forks source link

New python package, quick starter doc page #2

Closed sengiv closed 1 year ago

sengiv commented 1 year ago

SNIPPET 1

from vedastro.calculators import VenusInPisces
from vedastro.objects import GeoLocation, Time, Person, Gender

# person who born on Tokyo Japan
geolocation = GeoLocation(location="Tokyo", latitude=35.6895, longitude=-139.6917)
date = "07/05/2010"
time = "06:42"
time_offset = "+09:00"
time_ob = Time(date, time, time_offset, geolocation)
id = "1234"
user_id = "123"
notes = " "
name = "Test Person"
gender = Gender.Male

test_person = Person(id=id, user_id=user_id, name=name, gender=gender, birth_time=time_ob, notes=notes)
status = VenusInPisces(time_ob, test_person)

print(status.occuring)
print(status.related_body)
TharakaUmayanga commented 1 year ago

Please use this as starter code .

from vedastro.calculators import VenusInPisces
from vedastro.objects import GeoLocation, Time, Person, Gender

# person who born on Tokyo Japan
geolocation = GeoLocation(location="Tokyo", latitude=35.6895, longitude=-139.6917)
date = "07/05/2010"
time = "06:42"
time_offset = "+09:00"
time_ob = Time(date, time, time_offset, geolocation)
id = "1234"
user_id = "123"
notes = " "
name = "Test Person"
gender = Gender.Male

test_person = Person(id=id, user_id=user_id, name=name, gender=gender, birth_time=time_ob, notes=notes)
status = VenusInPisces(time_ob, test_person)

print(status.occuring)
print(status.related_body)
sengiv commented 1 year ago

quick starter with python nicely done by @TharakaUmayanga

https://github.com/VedAstro/VedAstro.Python