Event Processing
Welcome to EventProcessing, a lightweight, Python-based event handling system designed for efficient and straightforward event management and processing. This system allows for decoupled components, making it easier to develop and maintain complex applications with event-driven architectures.
Features
- Simple API: Easy to use for subscribing to events, publishing events, and handling them.
- Decoupled Design: Promotes loose coupling between components for better modularity.
- Efficient Event Handling: Queue-based event processing ensuring order and reliability.
Prerequisites
- Python 3.6+
Installation
pip install event_processing
Usage
Quick start guide and examples on how to subscribe to events, publish them, and handle them in your application.
Creating an Engine
# Create an engine for event handling
engine = Engine()
Subscribing to an Event
# Create a subscriber and subscribe to a topic
subscriber = Subscriber()
engine.subscribe(subscriber, "topic_name")
Publishing an Event
# Publish an event to a topic
event = Event(topic="topic_name", partition="partition_name", value="Hello, World!")
engine.inject(event)
# Or with the subscriber itself
subscriber.send(event)
Handling an Event
Implement the receive method in your Subscriber class.
def receive(self, event: Event):
print(f"Received event: {event.value}")
Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
License
Distributed under the MIT License. See LICENSE for more information.
Contact
Project Link: https://github.com/raulikeda/EventProcessing
Metadata
Release files for event-processing 0.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| event_processing-0.0.13-py3-none-any.whl | Python 3 | none | any | Details |
Release files / event_processing-0.0.13-py3-none-any.whl
| Download URL | event_processing-0.0.13-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b0247aee225879ce0cd36dc8e282cb1b7cf0a60bceafad38315915efcf26f20
|
|
BLAKE2b-256 checksum How to use checksums |
98a37d6f754c9c32154cf13c15bc0a0423d0d49c430ee51a7d1e6b735dca160b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Security for event-processing 0.0.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.