Skip to main content

A lightweight library for handling custom signals with synchronous and asynchronous callbacks in Python.

Project description

MicroSignal

Description

MicroSignal provides a lightweight library for handling custom signals with synchronous and asynchronous callbacks in Python. It supports both function-based and method-based callbacks, allowing for flexible signal handling in various contexts.

The library was born out of the need for a very simple event subscription model functionality, similar to the systems used in QT or PyPubSub (inspired by these libraries), but without being overloaded with unnecessary functionality and features. It also needed to work with both synchronous and asynchronous functions and class methods, something that was sorely lacking in PyPubSub.

Or as Michael Abrash said in his book "Graphics Programming Black Book": "No code runs faster than no code."

Features

  • Synchronous and asynchronous callback support
  • Function and class method callback support
  • Easy-to-use decorator and method for subscribing to signals

Installation

To install MicroSignal, you can use pip:

pip install microsignal

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

microsignal-0.1.1.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

microsignal-0.1.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file microsignal-0.1.1.tar.gz.

File metadata

  • Download URL: microsignal-0.1.1.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for microsignal-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b9fb463bcb15cb480386f2ffbf4d3007bc08e468d489b8d7543f408456e5c05f
MD5 791450175d2def2c60be84f8502545e5
BLAKE2b-256 4de980a977f78421b9ba9ff2eb0568a5586d1840359570131d3841aa5dfd47df

See more details on using hashes here.

File details

Details for the file microsignal-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: microsignal-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for microsignal-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7896bf79bed0534e676a89a93a00047f676e7c0448758fe15a9a725c7a000e4
MD5 66ab677b63d2823adcc4d815b2cdef6c
BLAKE2b-256 4e4fc9fb45be82b0ba41956708723f1044801a80bc599ee8d9ee3943c20def13

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