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 at http://xrt.readthedocs.io
The documentation is also available off-line as zip file (55 MB).