skip to navigation
skip to content

Not Logged In

pgi 0.0.7

Pure Python GObject Introspection Bindings

Latest Version:

GObject Introspection bindings written in pure Python using ctypes and cffi (optional). API compatible with PyGObject.


License: LGPL 2.1+


Development Status:

See the ‘examples’ directory for working examples. Anything else will probably not work.


from pgi.repository import Gtk, GObject

or (preferred)

import pgi
from gi.repository import Gtk, GObject

Search paths

Typelibs will be loaded from paths in the environment variable GI_TYPELIB_PATH and /usr/lib/girepository-1.0/.

Shared libraries from paths in LD_LIBRARY_PATH and the default system search paths (see dlopen(3)).


  • ./ test will run unit tests using PGI and PyGObject
  • ./ test –pgi-only to skip PyGObject tests
  • ./ test –filter=StructTest to run tests which include StructTest (regexp)

./tests/libs/ includes additional libraries that will be used for testing if present. Call make in ./tests/libs/ to build them.

File Type Py Version Uploaded on Size
pgi-0.0.7.tar.gz (md5) Source 2014-03-24 199KB
  • Downloads (All Versions):
  • 18 downloads in the last day
  • 255 downloads in the last week
  • 994 downloads in the last month