Skip to main content

A PEP3156 interface for various event loops

Project description

Looping

This package contains EventLoop implementations for various well known event loops. The EventLoop interface is currently being defined in PEP3156 [1] and the “Tulip” project [2].

Curently supported event loops are:

  • libuv (via pyuv)

  • Qt (via PySide)

This package supports Python 2.6, Python 2.7 and Python 3.2+.

The event loops only implement the callback interface, so e.g. add_reader() and friends, the call_soon() timer related functions, and the add_signal_handler() signal related functions. The other parts of the event loop interface require tulip.Future which in turn depends on the yield from statement. This is Python 3.3+ and is not supported in looping.

Usage

The looping package defines two event loops:

  • PyUVEventLoop. This loop will be available if the pyuv package is found.

  • PySideEventLoop. This loop will be avaialble if the PySide package is found.

You can set a default loop for the current thread using set_event_loop().

License

This package is licensed under the Apache 2 license (like tulip).

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

looping-0.2.tar.gz (11.5 kB view details)

Uploaded Source

File details

Details for the file looping-0.2.tar.gz.

File metadata

  • Download URL: looping-0.2.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for looping-0.2.tar.gz
Algorithm Hash digest
SHA256 3f8c3174519ad22294d5f33ab65de14dfe3be4a64e6994f1760f23db639e5a48
MD5 23672fef075a8aa94e145b7246ad5094
BLAKE2b-256 0bdc91731ce33e3fb47dc4ba2fdbbe99c66595781632129a3cb780b995af7e3c

See more details on using hashes here.

Supported by

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