Pythonic adapter for GererMesAffaires events
Project description
gerermesaffaires-events is a library designed to provide a flexible event emitter and server for integrating with GererMesAffaires. It enables developers to build event-driven applications and services that can easily handle and emit custom events in real time.
Getting started
Installation
To begin using gerermesaffaires-events, you first need to install the package. The following command downloads and installs the latest version from PyPI. Once installed, you can import the event emitter into your Python project and start building event-driven logic.
pip install gerermesaffaires-events
Usage
After installation, you can import the event emitter and create event handlers in your Python code. The following example demonstrates how to set up an event emitter, register handlers for specific events and respond to incoming data. This approach allows you to build applications that react to events in real time.
# main.py
from gerermesaffaires_events import EventEmitter
emitter = EventEmitter(signature="secret")
@emitter.on("ping")
def handle_ping(data):
print(f"Received ping event: {data}")
@emitter.on("error")
def handle_error(data):
print(f"Received error event: {data}")
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gerermesaffaires_events-1.0.1.tar.gz.
File metadata
- Download URL: gerermesaffaires_events-1.0.1.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa94a14764010681a9c1aa8e7c4e195e49c467a7ae99a316c930f3968f78c683
|
|
| MD5 |
98ce7c2da2e50d07814023fb9ed22df3
|
|
| BLAKE2b-256 |
b92f50a4681f3ef0937c4ddd2767e3591875a5c4fcbea70489112b08183cfa38
|
File details
Details for the file gerermesaffaires_events-1.0.1-py3-none-any.whl.
File metadata
- Download URL: gerermesaffaires_events-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fcc7b7a25eb8181a72de7ced24c8a81860743b2943ec2fe2c153bb3119d4d8c
|
|
| MD5 |
01e7641008c089e3b6da441015a10459
|
|
| BLAKE2b-256 |
3a08b0932f559e89893678dfe7657b36f8affa0a9c495260964d67e74608d199
|