Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

Pure Python GObject Introspection Bindings

Project Description

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

Code: https://github.com/lazka/pgi

License: LGPL 2.1+

Requirements:

Development Status:

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

Usage

from pgi.repository import Gtk, GObject

or (preferred)

import pgi
pgi.install_as_gi()
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)).

Tests

https://drone.io/github.com/lazka/pgi/status.png
  • ./setup.py test will run unit tests using PGI and PyGObject
  • ./setup.py test –pgi-only to skip PyGObject tests
  • ./setup.py 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.

Release history Release notifications

History Node

0.0.11.1

History Node

0.0.11

History Node

0.0.10.1

History Node

0.0.10

History Node

0.0.9

History Node

0.0.8

This version
History Node

0.0.7

History Node

0.0.6.3

History Node

0.0.6.2

History Node

0.0.6.1

History Node

0.0.5

History Node

0.0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pgi-0.0.7.tar.gz (204.2 kB) Copy SHA256 hash SHA256 Source None Mar 24, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page