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-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ba08d1e3d54a1c82dafa38307bc11572cc5bf9eda5e15b6582a58cfd7e64df0 |
|
MD5 | 082d7ea5285734f8e44480d35bd9b000 |
|
BLAKE2b-256 | 174699a497610aa946a2826280ce7117961a88da96d320ab7926f795b8058498 |