Skip to main content

Pure Python GObject Introspection Bindings

Project description

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

Development Status:

WARNING: Lots of things are not implemented/supported.

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

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

License: LGPL 2.1+

Requirements:

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

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.

  • ./setup.py quality will run pep8 and pyflakes tests

  • ./setup.py coverage will create a test coverage report

Project details


Download files

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

Source Distribution

pgi-0.0.10.1.tar.gz (224.1 kB view details)

Uploaded Source

File details

Details for the file pgi-0.0.10.1.tar.gz.

File metadata

  • Download URL: pgi-0.0.10.1.tar.gz
  • Upload date:
  • Size: 224.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pgi-0.0.10.1.tar.gz
Algorithm Hash digest
SHA256 eb13f7d931022c7dbeb2330a39e1588717c7315e4004c2b9503bec53c7705956
MD5 b624bb10f6c84955c6fb03a11867aa30
BLAKE2b-256 bed55aa90ed0396ce5de3080247af2839e3d00db2982192ce2e15603ac7954a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page