Skip to main content

A simple event signaling system

Project description

SignalSemaphore

A lightweight Python event signaling system.

Installation

pip install signalsemaphore

Usage

from SignalSemaphore import Semaphore

semaphore = Semaphore()

def handler(data):
    print(f"Received: {data}")

semaphore.connect("event", handler)
semaphore.emit("event", "Hello")
semaphore.disconnect("event", handler)

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

signalsemaphore-0.0.4.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

signalsemaphore-0.0.4-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: signalsemaphore-0.0.4.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for signalsemaphore-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b697f79a47b750e6f837ac88985e0eb09795e5a2bc834a92d05a7b4494150cbd
MD5 8b23dfbf37f7478bcffcdc6357d16543
BLAKE2b-256 15c7530eecdc89d82fa41ac6cf392812cf661149f331571167e1abd473a11798

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for signalsemaphore-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0e252c0f594a592c6c9829f0cb62bbebb429474c1e8e9f8780538ef040e7b859
MD5 3918a6396c8e9e6cb166679848a85e40
BLAKE2b-256 35124fc71686129976b3a5425afb8a45b1d2a87dd13a578d9f50eb4fc288f089

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