Pynbody is a light-weight, portable, format-transparent analysis framework for N-body and hydrodynamic astrophysical simulations supporting PKDGRAV/Gasoline, Gadget, N-Chilada, and RAMSES AMR outputs.
Written in python, the core tools are accompanied by a library of publication-level analysis routines. For a quick tour of some of the features, have a look at this IPython notebook.
If your python with distutils is installed and properly configured, you can simply do:
$ git clone https://github.com/pynbody/pynbody $ cd pynbody $ python setup.py install $ cd .. $ python >>> import pynbody