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.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbcf4f3024b4bab2ed625af605b4ba399c3ccc0d085b9c8be1796321df3de8da |
|
MD5 | 5081c8ea1126a963c06957688eccc8ab |
|
BLAKE2b-256 | abe65381b6edfa52d2bc241ca67d9533dd13fd51b5a6727e7ca2421c1d3c682c |