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.
This programming-tool-related article is a stub. You can help Wikipedia by expanding it.