The algorithms("higher accuracy") of the book "Jean Meeus - Astronomical Algorithms (2nd ed.)" have been programmed in python.
The positions of the Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto and the LunarNode are computed.
Asc, RAMC, MC, some house systems and ayanamsa are also computed.
This webpage is for programmers.
Julian, Gregorian calendars
Geocentric or heliocentric positions of the planets (no heliocentric positions of the LunarNode).
Mean or true obliquity of the Ecliptic
Sidereal time
Nutation
Parallax (topocentric positions)
Aberration
FK5
Ecliptical, Equatorial and Horizontal coordiantes
See the top of astronomy.py and also Meeus2.zip on Steve Moshier's webpage:
If one wishes to have more exact positions:
ftp://ftp.imcce.fr/pub/ephem/planets/vsop87 (the complete VSOP87)
http://www.caglow.com/info/compute/vsop87 (explanation)
Only the Moon:
http://www.amazon.com/Lunar-Tables-Programs-4000-B-C/dp/0943396336
http://www.astro.com/ (Swiss Ephemeris)
https://sites.google.com/site/pymorinus/ (example)
Astrolog: (its code helps a lot!)
http://www.astrolog.org/astrolog.htm
Download both astronomy.py and test.py.
It was written with python 2.x but it is very easy to convert to python 3.x (e.g. with 2to3). Perhaps just the parenthesises are missing in case of "if", "else" and "while" which are mandatory with python3. The "print" function also need to be changed.
See test.py and the top of astronomy.py for details.
To start:
python ./test.py
On Windows:
python test.py
A basic introduction to 3D programming:
https://sites.google.com/site/3dprogramminginpython/
A Forth Operating System:
https://sites.google.com/site/forthoperatingsystem/
robert dot pluto at gmail dot com