VedAstro / VedAstro.Python

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

life prediction example #11

Open hpeter36 opened 6 months ago

hpeter36 commented 6 months ago

Hello,

Could you please add an example to life prediction with similar chart shown on the main website or at main project github? Or just describe the process in nutshell how to do it.

Thanks, Peter

sengiv commented 6 months ago

If i understand you correctly, you want to generate life prediction SVG via python code? If that is the case: then it should technically be already possible, since full VedAstro lib is accesible from python, you just have to find out how to access via the pythonnet clr interop.....so instead of using await as in c# you use, .Result(), otherwise code should 100% same

sengiv commented 6 months ago

join slack or arrange a google meet i can help you get this sorted....another similar question on youtube today, not sure if that was you......hopefully by the end of this we can have working example, where you get SVG saved to local file

hpeter36 commented 6 months ago

Hello sengiv,

yes I was on yt too :), maybe my question was too quick, I just started analyize the source code and total new in vedic astro.

it is enough for me to give a python example which returns the necessary data to construct the chart in python or js frontend.

Thanks for your lighting fast reply :)

rickspark4 commented 6 months ago

Hello guys, i am facing some issue while running the project, can i get slack link or somehow connect with you in order to understand this, i also want to get that SVG chart using python. plz help

Regards: Rick Spark

sengiv commented 6 months ago

@hpeter36 sorry to say at the time of writing there is no ready demo code for python to make life predictor related stuff (i'll start work on this soon)

sengiv commented 6 months ago

@rickspark4 yeah this should be very possible, till the demo code is done you can try use the API first image

rickspark4 commented 6 months ago

hey @sengiv, thanks for quick reply there is another issue i am having , you provided python demo code in this repo which is continiously throwing below error "TypeError: No method matches given arguments for Person..ctor:" could you please help me with this error ?

hpeter36 commented 6 months ago

@hpeter36 sorry to say at the time of writing there is no ready demo code for python to make life predictor related stuff (i'll start work on this soon)

Thanks for your effort, no problem, I am still working on another project, but curious about the python demo.

sengiv commented 5 months ago

@hpeter36

.....data to construct the chart in python or js frontend.

for js front end just make http GET call to LifeChart API link, the settings for the chart is set in the call url, sample below :

https://api.vedastro.org/EventsChart/SteveJobs1955/Start/00:00/24/02/1955/End/00:00/05/02/2030/+08:00/29.122/PD1,PD2,PD3,PD4,PD5,PD6,PD7/General,IshtaKashtaPhalaDegree,PlanetStrengthDegree/Ayanamsa/Raman

hpeter36 commented 5 months ago

@sengiv thank you, it is very nice, is there a short description, what the different options means?

If I use the python lib. the calculations will happen on my local machine, there isn't API calls behind it right? or is there a local server under the hood?

sengiv commented 5 months ago

Description for options can be found in advanced options panel in life predictor page Also there are comments in code

Yes, it will use your local machine. Technically, you should be already able to do this. Since possible in c#

If you get working demo code please post it here. It would help others for sure.

hpeter36 commented 5 months ago

@sengiv thanks, I will play with it and of course post a working code if achieved, thanks for the great support!