Skip to main content
pypi Main Workflow Status Main Workflow Status pre-commit black license

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).

Metadata

Release files for the-trial 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for the-trial 2.0.0
File Size Uploaded
the_trial-2.0.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for the-trial 2.0.0
File Interpreter ABI Platform
the_trial-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / the_trial-2.0.0.tar.gz

Download URL the_trial-2.0.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
29d4631fd0e260cb0a3540c1ab7ae9f042f838d41f08185e628bc9697f501edf
BLAKE2b-256 checksum
How to use checksums
d749bc19c961c3a34c81c89cbcd40446eb4afe8dffab04aeb6f0ad5fefdd05c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / the_trial-2.0.0-py3-none-any.whl

Download URL the_trial-2.0.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd9e2f0642cd1241a944a282e2309dcaa914f04dd04a8abcdaad732f47c9932e
BLAKE2b-256 checksum
How to use checksums
62b9505eee19402c0365e7a5bef60b0d6dc4f6036a1196b80e4336230d2542d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page