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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file the_trial-2.0.0.tar.gz.
File metadata
- Download URL: the_trial-2.0.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29d4631fd0e260cb0a3540c1ab7ae9f042f838d41f08185e628bc9697f501edf
|
|
| MD5 |
bdb6561d340e56bfb447a1cc8aa92892
|
|
| BLAKE2b-256 |
d749bc19c961c3a34c81c89cbcd40446eb4afe8dffab04aeb6f0ad5fefdd05c6
|
File details
Details for the file the_trial-2.0.0-py3-none-any.whl.
File metadata
- Download URL: the_trial-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd9e2f0642cd1241a944a282e2309dcaa914f04dd04a8abcdaad732f47c9932e
|
|
| MD5 |
d8a83d65932ca744f3839fdd5cb40b5d
|
|
| BLAKE2b-256 |
62b9505eee19402c0365e7a5bef60b0d6dc4f6036a1196b80e4336230d2542d2
|