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.2.tar.gz (3.1 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.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: piney_event-0.0.2.tar.gz
  • Upload date:
  • Size: 3.1 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.2.tar.gz
Algorithm Hash digest
SHA256 7f756f5f499460cc5eea443f0a92633596de730301b7e8f46f6dab3c257283a5
MD5 93b7d9e7f1ba4f618141ea808bedc78c
BLAKE2b-256 7c111ccd88a3589ff6b47b206bd7e6316c8e98e184e2e8f2a7de6d08b8083520

See more details on using hashes here.

File details

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

File metadata

  • Download URL: piney_event-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d35d775942d0ca97b770fd43be423eda02aab532f0e6212285369e3b69f045f6
MD5 2d4a8fe78143789619cd288a14cfc5c7
BLAKE2b-256 f84b7d39f52580318d0c127ada456e7ebcc3c4bd6bd8027f77af78510e7f190e

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