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.6.tar.gz (13.9 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.6-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for gerermesaffaires_events-1.0.6.tar.gz
Algorithm Hash digest
SHA256 cc5664856d25b9c690cfd70b345f2db8823ff388ca3811f4b9b0e69806aa226b
MD5 3ace54889c317c909abce11332c653cf
BLAKE2b-256 909424a866629ab86c3d0432c993640ddd85e8af8c10a2be40a1a5ecf6577802

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gerermesaffaires_events-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3655cf4d1e34c7fa4d969d7821ce54024b7f10e2cea85d10de6bede909130266
MD5 ebdeb0a757b5f73d4a83bf99992b426a
BLAKE2b-256 76d033e481063cb24e98f0dbba91a3c7ff8f066b861d0231346e0f7e40963d1f

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