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

Uploaded Python 3

File details

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

File metadata

  • Download URL: signalsemaphore-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 b2a254a2f5e2794d0aca2573b0e31e37e9a740ae2c53c320a45b99bb57cc7fba
MD5 db32703e2c283992dbb3c6c65f7c5258
BLAKE2b-256 9ee95a96fce9668436c0287e1d8bffe0408310aad36e4852695aee05ea38dba0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for signalsemaphore-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2225a9009e79fed1e739ea48244ccdd9e4b080adc71c14d82712ee51c3c40c57
MD5 ff644e9859c5fd8b216bc903556f3c25
BLAKE2b-256 ff94fbd760d67454a9abdabfc5bda8a83a5bdcbd0a97fa6a1c1de9f6d695e74f

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