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.1.tar.gz (3.0 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.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: piney_event-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for piney_event-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a7fa6c444351294fe994f1143ee9930b3df4e7b35b1ab1ce84d652e592682b9f
MD5 503c3e92a572010210652b11335c1a09
BLAKE2b-256 3e56009d969970857568b03aef08c47c556372ebc19cd5fac95164ea445b0f3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: piney_event-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for piney_event-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 797e1b034aa571092b11a6fca8d36afab5aa752b44a6df40345d2c8e1468fac2
MD5 796530eb8b1462d927074fff59d9c0dc
BLAKE2b-256 fd347dbc4e590f8d8056c78f11680a5bcdc5506810a367ae09d4486d2f475118

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