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. Includes a GUI for creating a beamline and interactively viewing it in 3D.
xrt is also available as source distribution from
https://pypi.python.org/pypi/xrt
See the documentation on http://xrt.readthedocs.io
The documentation is also available off-line as zip file (63 MB).