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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for signalsemaphore-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9fd35b91f95828fba0e7ba46cc44d71a7544849ca7f5c9e6e64f1ac763e66f6a
MD5 3d6dce972112e0b5eeaea87f557a0766
BLAKE2b-256 d1b4e0ca5768d92483405a97d4f67e102e15b3c40fe7219f3acad95eb82d018f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for signalsemaphore-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1d08366f6cca6db4c39e9d820eb0764a723a6c0a9b2461f0cb597520a01ab202
MD5 1c9f6e4217c2fa7e76cc3dc3ce68154f
BLAKE2b-256 ebd688e21ce7fc29b2a5eb707791b57cb95b81eeeebcd308823ec0e9711c85f2

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