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. 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

gerermesaffaires_events-1.0.5.tar.gz (13.8 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.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for gerermesaffaires_events-1.0.5.tar.gz
Algorithm Hash digest
SHA256 538c11d409224b59c80d766e4436fd0000f7da03cfc96a1ed705216c74e24cd6
MD5 03ff609ed6d0e9da08a0f688b3673087
BLAKE2b-256 1c892b84dbed9d30f37b100b287e6b6040b04843cdf46a5989e3e088ecca3ccb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gerermesaffaires_events-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3808584a26f691db6254740a78e9054b63db97abe0e28444e27d431f251b11c2
MD5 06fb89e24ed0fcab4df075066d4f9da6
BLAKE2b-256 026d005d87f754ff417f4ca247c85371321a828ff51d504feab7e83acfb29747

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