PyXDG provides Python implementations of various freedesktop.org specifications. This is the Giithub mirror.
Python Shell
Latest commit bd999c1 Jan 24, 2014 @takluyver Improve security of get_runtime_dir(strict=False)
Fixes fd.o bug #73878.

README

The XDG Package contains:

    - Implementation of the XDG-Base-Directory Standard
      http://standards.freedesktop.org/basedir-spec/

    - Implementation of the XDG-Desktop Standard
      http://standards.freedesktop.org/desktop-entry-spec/

    - Implementation of the XDG-Menu Standard
      http://standards.freedesktop.org/menu-spec/

    - Implementation of the XDG-Icon-Theme Standard
      http://standards.freedesktop.org/icon-theme-spec/

    - Implementation of the XDG-Shared MIME-info Database
      http://standards.freedesktop.org/shared-mime-info-spec/

    - Implementation of the XDG-Recent File Storage Specification
      http://standards.freedesktop.org/recent-file-spec/

To run the tests, run nosetests in the top level directory.