Skip to content
/ gbulb Public
forked from beeware/gbulb

GLib implementation of PEP 3156

License

Notifications You must be signed in to change notification settings

ntninja/gbulb

 
 

Repository files navigation

gbulb

Python Versions PyPI Version Maturity BSD License Build Status Discord server

Gbulb is a Python library that implements a PEP 3156 interface for the GLib main event loop under UNIX-like systems.

As much as possible, except where noted below, it mimics asyncio's interface. If you notice any differences, please report them.

Requirements

  • python 3.6+
  • pygobject
  • glib
  • gtk+3 (optional)

Usage

GLib event loop

Example usage:

import asyncio, gbulb
gbulb.install()
asyncio.get_event_loop().run_forever()

Gtk+ event loop (suitable for GTK+ applications)