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.6.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.6-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: signalsemaphore-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 04bd6763e9cb0d99ecd55c87b7ac8c01595eae8ab3600ee30e1bd9155012ec85
MD5 a95b77d61ba9964c5874949168eb98b2
BLAKE2b-256 31f06c7e08723ccb9d9dc40a79ef0026731391bca684d384febd6e069678896f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for signalsemaphore-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 19f3765e4a61674b4115e45c9705bca32a374d65ccca2e1284bf3db538d6815a
MD5 b92dca91aabe6b2b6b0264004b3cbfe5
BLAKE2b-256 57e2781c1d33348158b24b246f5228232e9296185e71e4d42fcca9efc334ed5a

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