Package xrt (XRayTracer) is a python software library for ray tracing and wave propagation in x-ray regime. It is primarily meant for modeling synchrotron sources, beamlines and beamline elements.
xrt is available as source distribution from https://pypi.python.org/pypi/xrt
See the documentation at http://pythonhosted.org/xrt.