automatically setups a kafka instance for testing
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
testing.kafka-0.0.1.tar.gz
(6.9 kB
view details)
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 testing.kafka-0.0.1.tar.gz.
File metadata
- Download URL: testing.kafka-0.0.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e3899d1fdba4c22755c6e266110a95b1fcb0ceb57b3ed3e124a9a3c61c46700
|
|
| MD5 |
4a61a450dcf1b4c5e6dee3548f5d244f
|
|
| BLAKE2b-256 |
e67233d5d6933b92054d001e708ce7aa7c36cfb76f51bee330bfccac791deb17
|
File details
Details for the file testing.kafka-0.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: testing.kafka-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fe047f33660e0c6f22413d159c0062c5acaef964e6417dd0d9b113726b8f918
|
|
| MD5 |
523e995039591c269d9bc8a0c83c2dc5
|
|
| BLAKE2b-256 |
7b103ee640125236768ebaac6d2d3b23186f110fa40d1a657e16f1ad6fc8e891
|