Skip to main content

Install

Use pip:

$ pip install testing.kafka

testing.kafka requires zookeeper, kafka and java to be installed.

Usage

Create Kafka and Zookeeper instances:

@pytest.fixture
def kafka():

    zookeeper = testing.zookeeper.ZookeeperServer()
    kafka = testing.kafka.KafkaServer(zookeeper_url=zookeeper.url())

    yield kafka

    kafka.stop(_signal=signal.SIGKILL)
    zookeeper.stop(_signal=signal.SIGKILL)

Metadata

Release files for testing.kafka 0.0.1

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

Source distribution (sdist)

Source distribution for testing.kafka 0.0.1
File Size Uploaded
testing.kafka-0.0.1.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for testing.kafka 0.0.1
File Interpreter ABI Platform
testing.kafka-0.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 15.4 kB

Release files / testing.kafka-0.0.1.tar.gz

Download URL testing.kafka-0.0.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7e3899d1fdba4c22755c6e266110a95b1fcb0ceb57b3ed3e124a9a3c61c46700
BLAKE2b-256 checksum
How to use checksums
e67233d5d6933b92054d001e708ce7aa7c36cfb76f51bee330bfccac791deb17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

Release files / testing.kafka-0.0.1-py2.py3-none-any.whl

Download URL testing.kafka-0.0.1-py2.py3-none-any.whl
Size 8.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5fe047f33660e0c6f22413d159c0062c5acaef964e6417dd0d9b113726b8f918
BLAKE2b-256 checksum
How to use checksums
7b103ee640125236768ebaac6d2d3b23186f110fa40d1a657e16f1ad6fc8e891
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

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