PyEphem


PyEphem is a library that implements astronomical algorithms for the Python programming language. It is free under the LGPL.
The library is written in Python and C, with code for calculating positions of bodies taken from XEphem by permission.