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:
libgirepository 1.0
cffi 0.6+ (optional)
cairocffi 0.4+ (optional, for cairo support)
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)).
Documentation
- PGI docs:
- Autogenerated GI docs:
Tests
./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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pgi-0.0.6.2.tar.gz.
File metadata
- Download URL: pgi-0.0.6.2.tar.gz
- Upload date:
- Size: 176.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45204f0cbfbf3d30d28645376fce63530472c0494e06444d7d3e84da9156a62c
|
|
| MD5 |
a965b76d0f0bd9a72fd196505cee5654
|
|
| BLAKE2b-256 |
a5e5a092dcb9998f01ac0b537dd656324003bf261fc95b33c19b100afa823af5
|