EVKafka framework. Handle kafka events easy
Project description
evkafka
EVKafka is a small framework for building event driven microservices.
Installation
$ pip install evkafka
Basic usage
from evkafka.app import EVKafkaApp
config = {
"bootstrap_servers": "kafka:9092",
"group_id": "test",
}
app = EVKafkaApp(config=config, topics="topic")
@app.event('FooEvent')
def foo_handler(event: dict) -> None:
print(event)
if __name__ == "__main__":
app.run()
More details can be found in the documentation
Status
The framework is in alpha.
License
This project is licensed under the terms of the MIT license.
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
evkafka-0.1.0.tar.gz
(13.5 kB
view hashes)
Built Distribution
evkafka-0.1.0-py3-none-any.whl
(11.9 kB
view hashes)