A Python microframework for easy communication with Kafka.
Project description
theTrial is a microframework designed to provide a simple interface for interacting with Kafka. It simplifies the process of setting up consumers and producers for Kafka topics using Pythonic decorators. Under the hood, it uses confluent-kafka to communicate synchronously with Kafka clusters.
Installation
Install from pip:
python -m pip install theTrial
Quick Start
Here’s a simple example to get you started:
from theTrial import TheTrial
app = TheTrial()
Settings Configuration
For a detailed explanation and additional configuration options, refer to the official Confluent documentation: Confluent Kafka Python Documentation.
User-Defined Settings
Logging Configuration
theTrial employs and extends Python’s built-in logging module for system logging.
CLI Commands
theTrial includes a set of CLI commands to set up and manage your projects.
Start Command
To initialize a new project structure, use the start command:
theTrial start --name [YOUR_APP_NAME]
By default, the main app file will be named app.py. You can specify a different name using the --name option.
This command will:
Create the main app file ([YOUR_APP_NAME].py).
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
Built Distribution
Hashes for the_trial-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50d9755b1bafa7806c029edf7c074010a81144ae29f1464ba42827fee914fd0f |
|
MD5 | d1d5b993c3a9d069a20cd43f6cefc802 |
|
BLAKE2b-256 | dff0f28f14f87efa7552b867d7eda469875fcb841709965b0c5ebaaa2d4f081e |