No project description provided
Project description
Guido
Guido is a library that simplifies the integration with Apache Kafka and streamlines the creation of Kafka consumers. It offers easy setup, automatic offset management, and built-in error handling, helping you quickly build reliable and efficient Kafka consumer applications.
Features
- Easy Kafka Integration: Seamlessly connect to Kafka clusters.
- Simplified Consumer Setup: Quickly create and manage Kafka consumers.
- Automatic Offset Management: Handle offsets automatically.
- Error Handling: Built-in error handling and retry mechanisms.
Getting Started
To use Kafka Consumer Helper, follow these steps:
Install the library: Add guido to your project. For example, if you're using pip, you can install it with:
pip install guido-kafka
Configure Kafka Service: Set up your Kafka service connection with the required parameters.
Create and Start the Consumer: Use the Guido class and KafkaService to create a consumer and start processing messages.
Example Usage
Here’s a simple example of how to use guido in your project:
from guido import Guido, KafkaService
# Initialize Kafka service with connection parameters
service = KafkaService(bootstrap_servers='localhost:29092', group_id='my_favorite_group')
# Create a new Guido application with the Kafka service
app = Guido(service)
# Define a function to process messages from the 'my_topic' topic
@app.subscribe('my_topic')
def process_message(message: dict):
print(message)
Save the file as test_app.py
and run
guido test_app.app
License This project is licensed under the MIT License. See the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file guido_kafka-0.1.tar.gz
.
File metadata
- Download URL: guido_kafka-0.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5f84b3ecaf87d1fc798565b0f5a79e2bd4e7dfb459f41031184835626b5ebae |
|
MD5 | 08cf55b52fa276e87a4b60c2c7d46eb1 |
|
BLAKE2b-256 | ed5cfe7fe1193fa8c2ae51092477cf97b7d613b3166226e720113e7f7a24b7f6 |
File details
Details for the file guido_kafka-0.1-py3-none-any.whl
.
File metadata
- Download URL: guido_kafka-0.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae461285bed4d4af2b6d5f2297296e1fc52c48655d07fdb8b4fddfae29e25bba |
|
MD5 | 99402b45f8b319a8fccfe52ee982ec99 |
|
BLAKE2b-256 | 60379f75c104b6309e767409341344e6401809067addd240376427f6ab10525d |