Skip to main content

A tiny Event System for Python

Project description

A tiny Event System for Python

Example:

from event import Event, TypedEvent

my_event = Event()
my_typed_event = TypedEvent(str, float)

def receiver(arg1, arg2):
    print(arg1, arg2)

def typed_receiver(arg1: str, arg2: float):
    print(arg1, arg2)

if __name__ == "__main__":
    my_event.connect(receiver)
    my_event.emit("Hi", 8)
    my_typed_event.connect(typed_receiver)
    my_typed_event.emit("Bye", 9.0)

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

piney_event-0.0.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

piney_event-0.0.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file piney_event-0.0.4.tar.gz.

File metadata

  • Download URL: piney_event-0.0.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.3

File hashes

Hashes for piney_event-0.0.4.tar.gz
Algorithm Hash digest
SHA256 10c14dce3bf84f2e20d92ad4e0582ece35b522cd4ff594f789fcc063d7260ac8
MD5 523a291afe970c398586701c26dff0e3
BLAKE2b-256 3ff2b04dae26de256fda1a246bb70e6d34ff119d62f51c8c2eec3373400ab762

See more details on using hashes here.

File details

Details for the file piney_event-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: piney_event-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.3

File hashes

Hashes for piney_event-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4329ad0978a7216906167686aa8c205fded8a19b17438767dd72dedf66a95963
MD5 78f97f51991a9ba789c8413bc5cb4647
BLAKE2b-256 a943afa8905a5a06f163e9d2a2962fe9335a2f188b32db0e2ddbc40a1ae1f202

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