Skip to main content

Pythonic adapter for GererMesAffaires events

Project description

Version Code Size License

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}")

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

gerermesaffaires_events-1.0.7.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

gerermesaffaires_events-1.0.7-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file gerermesaffaires_events-1.0.7.tar.gz.

File metadata

File hashes

Hashes for gerermesaffaires_events-1.0.7.tar.gz
Algorithm Hash digest
SHA256 2c67224aabe191cf6b78bec9a3f416d98649b28bd87d1ecfd0d8138ee0d63e3e
MD5 61804353611f92d30c20ba5c3b393a97
BLAKE2b-256 4982968ee0e9e2fa848e0f9fd036b0b48fcc9cc771cad1e29bcbc2e772eaa172

See more details on using hashes here.

File details

Details for the file gerermesaffaires_events-1.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for gerermesaffaires_events-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5f1283fa904c1992d48cb0e8808a1e00563ab913f03fb5b3c69d4a1afd6a6d2b
MD5 156bc9f907169fa46c7717785d4d4544
BLAKE2b-256 2a14753ea2343d15f6cf4349a4dc453089b30ebb3987e58527fc2b4da45d6d94

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