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. Select the installation method that best fits your workflow:
📦 Using pip
pip install gerermesaffaires-events
🚀 Using pipx
pipx install gerermesaffaires-events
⚡ Using uv
uv add gerermesaffaires-events
Once installed, you can import the event emitter into your Python project and start building event-driven logic.
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}")
Release files for gerermesaffaires-events 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gerermesaffaires_events-1.0.7.tar.gz | 14.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gerermesaffaires_events-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.5 kB
Release files / gerermesaffaires_events-1.0.7.tar.gz
| Download URL | gerermesaffaires_events-1.0.7.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c67224aabe191cf6b78bec9a3f416d98649b28bd87d1ecfd0d8138ee0d63e3e
|
|
BLAKE2b-256 checksum How to use checksums |
4982968ee0e9e2fa848e0f9fd036b0b48fcc9cc771cad1e29bcbc2e772eaa172
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Release files / gerermesaffaires_events-1.0.7-py3-none-any.whl
| Download URL | gerermesaffaires_events-1.0.7-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f1283fa904c1992d48cb0e8808a1e00563ab913f03fb5b3c69d4a1afd6a6d2b
|
|
BLAKE2b-256 checksum How to use checksums |
2a14753ea2343d15f6cf4349a4dc453089b30ebb3987e58527fc2b4da45d6d94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|