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

Uploaded Python 3

File details

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

File metadata

  • Download URL: microsignal-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 301622259fcf2f0c2f74415e8c838b56538c0ad9f7f25605cd633074a219ebe3
MD5 6f3572661edd82062107066c9eef357a
BLAKE2b-256 b40872c324f1da84fb6784c24c55b89319ecdf8218b6e1242c8b0d3d06d2f6de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: microsignal-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33c0df6e7a13bdc42df694c441b408b05a1d6ea7324627af4b0c822c21ab015f
MD5 37d6784661370fdb5ac7802037973eb3
BLAKE2b-256 8c937fd94b98988f600ef70ac33713a531e71957f5a34f778cafe2de8ff1fd6b

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