Skip to main content

Events for asyncio

Project description

aioevents

Events for asyncio (PEP 3156)

Usage

To declare an event:

from aioevents import Event

class Spam:
	egged = Event("The spam has been egged")

To register a handler:

spam = Spam()

@spam.egged.handler
def on_egged(sender, amt):
    print("Spam got egged {} times".format(amt)")

Triggering an event:

spam.egged(42)

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

aioevents-0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

aioevents-0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioevents-0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for aioevents-0.2.tar.gz
Algorithm Hash digest
SHA256 5d5d1284eacb8d70f61e02d19644b3faa09a897727de6fa9e6285a1aa9fdbe2e
MD5 bd924d5b7c9f0ecfc4a459de461d6ff9
BLAKE2b-256 f9eb3d1b903f1d6818a811ec1545e2f745a8342dbcf76b6f32b5dc829237d51e

See more details on using hashes here.

File details

Details for the file aioevents-0.2-py3-none-any.whl.

File metadata

  • Download URL: aioevents-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for aioevents-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 10133951aff3668eed7436899aa801230338edc173a7657dc2e78e9d9170ad9b
MD5 dc60da4169ed5b409f18a5a6aad033ab
BLAKE2b-256 6d758a9c7db9578756f6c64e170e6abb35e3302fadb9c8f914a441d88ab3ef78

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