Skip to main content

A simple event signaling system

Project description

Semaphore

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: signalsemaphore-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8f3460dcb9f11094e02d896334e894888bdf7c968f98f77b7e270824dec617d2
MD5 91788662738c88e33b72ec2f5bbc7580
BLAKE2b-256 3351e06ec5dbb3d720075eca4138b9a743e2d9902af8e9e62dfc86a377c6b411

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for signalsemaphore-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ab53e461fee29d375da337a396e997d2e828720bd28ce4db550f466c65b481cc
MD5 7b7c0ee27bef859a900d76e540275b9a
BLAKE2b-256 39368f7bf6f603b6b1220f922813bcc741a1db96033163b8504eba3549ca68b0

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