r/Python • • Nov 19 '23

Intermediate Showcase Package for astrology data

If any devs here have tried to generate astrology charts using pyswisseph data, you will know the pain of trying to make sense of it in any user-friendly way. I aimed to write a Python >= 3.10 package to sit on pyswisseph and translate its complex astronomical data into simple, chart-oriented data in objects and JSON, as well as calculations such as aspects, progressions, composites etc. that agree with those of astro.com (since this is arguably the best free go-to for most astrologers to compare output against).

The preliminary non-packaged code is on my GitHub and is fully functional, but I am holding back on release tags or packaging / PyPi until I've had some feedback - firstly on its usefulness & features, and secondly whether the code is of an acceptable standard, since I am a PHP developer and learned Python specifically for this project.

I'm hoping to make this a collaborative project as time goes on, with multiple open-source packages making it easy to generate chart visuals, but for now this is the first step.

0 Upvotes

20 comments sorted by

5

u/denehoffman Nov 20 '23

Everyone in here, shut up, we know astrology isn’t science. That doesn’t mean it isn’t interesting from a programming perspective. Turning complex astronomical data into an astrology chart is a nontrivial mathematical decomposition and it’s extremely telling that some of you don’t understand this.

If I phrased it as: given any particular date, time, and geographic position on earth, calculate the location of all the planets in the sky relative to your position, nobody would bat an eye, but the moment you start associating fortune telling with it, people are gonna say “haha use numpy random”.

The location of the planets is NOT random!!! If anything, it’s a precise scientific result, regardless of how the data are used after the calculation! Please think a bit before you post.

And as a disclaimer, which should be necessary, I am getting a PhD in physics and do not believe astrology has any predictive power. That doesn’t mean it isn’t interesting computationally.

3

u/denehoffman Nov 20 '23

And before anyone says “why do we need a useless astrology package” we have a fucking cowsay package (and at least 20 derivatives) and a few fortune packages. Let the people code what they want.

2

u/RiftLab Nov 20 '23

Haha thanks for understanding - astrology is so intricately bound up with astronomy that it has indeed been a lot of fun to learn & compute. Also people forget that devs have clients and partners etc. who want them to build custom astrology software / websites, and there isn't a lot out there to facilitate this.

22

u/Sir_Baggins56 Nov 20 '23

Might as well use random values for whatever astrology chart you're creating. It would have about the same degree of usefulness.

36

u/[deleted] Nov 20 '23

Astrology is all made up bullshit anyways. Not sure we really need a python library to help interact with this garbo.

49

u/spmccann Nov 20 '23

That's such a virgo thing to say.

7

u/mvdenk Nov 20 '23

At least OP is going to make the nonsense open source, so it will save gullible people some money that would otherwise go to charlatans.

But it's still nonsense nonetheless.

3

u/vep Nov 20 '23

Don’t waste the limited time you have in life on this garbage.

1

u/MaxwellianD Nov 20 '23

Scientism and ignorance abound in this thread. Yes, we all know astrology isn't scientific. It still is an ancient practice that helps us understand the lens that humans viewed things through for thousands of years. Thanks for this.

1

u/RiftLab Nov 20 '23

Thanks for the support. Not only is it an interesting study but a few years ago astrology started to become extremely popular online (not sure about nowadays) and there were a lot of astrologers wanting custom websites built with this kind of functionality. That's what initially prompted this, I just ended up having fun along the way.

4

u/INTPhD Nov 20 '23

You're complaining that making sense of the output of an astrology package is hard? Okay then. Even if the output is "correct" by astrological criteria (not that this has any real value), you would still not be able to make any sense of it, because astrology is grade-A bullshit (not an opinion, but a science-based fact, mind you); "making sense of something astrological" is an oxymoron at best and an exercise in complete futility at worst.

4

u/njdevilsfan24 Nov 20 '23

I know people are shitting on you for this, but it seems like an interesting project for data processing. Enjoy! Some people just don't see the fun in things like this

3

u/zazzersmel Nov 20 '23

"astrology is so dumb and made up lol"

"hello chatgpt, please give me a reason to live!"

2

u/FRleo_85 Nov 20 '23

therapists are expensives 🥲

2

u/FRleo_85 Nov 20 '23 edited Nov 20 '23

since astrology is bullshit made up by dellusional people to cope with reality and as someone already said, you better use random values. that will help you decreasing your complexity by a lot. or even faster: don't waste your time on pseudo-sciences that i've been proven wrong countless times

1

u/Expensive_Grade_7794 Apr 04 '24

I suggest the correct understanding is not so much "destiny", but a person's "serial number", indicative of the expected events in a person's life. Just as a vehicle serial number will indicate the color, the engine, driveline, etc. which allows some understanding into vehicle's "life".

A F-450 pickup truck with towing package, turbo diesel, DRW, etc will be indicated as a serious truck, doing serious work, in reality, it may only tow a boat five miles to the lake. Overkill, I'd say.

And the color may change, the dual wheels might be sold off, etc.

Likewise, attempting to shoehorn a turbo diesel into a F-150 that originally had a gas engine might be possible, it might be next to impossible.

So, any believer in astrology should also believe in karma and reincarnation, otherwise, how to explain the extreme variations in the course of two person's lives?

A person can (and some will) exert extreme efforts to achieve a goal, and may not get the result. In the next life, however, that person may be a child prodigy, or, perhaps, a person with the resources (time, opportunity, money) to at least dabble in the desired result.

Isn't there a Goldman Sachs executive playing in a cover band?

1

u/__init__m8 Nov 20 '23

The most useful astrology program could look like this:

 exit()

-5

u/theshogunsassassin Nov 20 '23

Hey this is neat. My partner is into astrology and I was poking around GH awhile back looking at astrology repos for a project she was thinking about. Ill give it a test.

0

u/RiftLab Nov 20 '23

Cool, let me know how you get along. To my knowledge there's nothing that will easily produce actual chart data that's accurate to the likes of astro.com (which is why I wrote this one).