Python bindings for rdfkafka Rust library
Project description
pyrkakfa
Description
rdfkafka is a Rust library for working with Kafka in Python. It provides a high-level interface for producing and consuming RDF data using the Kafka messaging system.
Features
- Easy integration with Kafka for RDF data processing.
- High-level API for producing and consuming RDF messages.
- Support for various serialization formats (e.g., JSON, Avro, Protobuf).
- Efficient and scalable processing of RDF data.
Installation
You can install rdfkafka using pip:
pip install rdfkafka
Producer Example
from rdfkafka import KafkaProducer
producer = KafkaProducer(bootstrap_servers='localhost:9092')
topic = 'my_topic'
message = 'Hello, Kafka!'
producer.send(topic, message.encode())
Note: producer gets closed when dropped
Consumer Example
from rdfkafka import KafkaConsumer
consumer = KafkaConsumer(bootstrap_servers='localhost:9092')
topic = 'my_topic'
consumer.subscribe(topic)
for message in consumer:
print(message.value.decode())
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 Distributions
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 pyrkafka-0.1.1.tar.gz.
File metadata
- Download URL: pyrkafka-0.1.1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e34881067b9484db434352fa809367895e713f4e6873609d9108b642fa8d82bf
|
|
| MD5 |
bbb98fed2564ded0176a8aec2b3af603
|
|
| BLAKE2b-256 |
27cb37b24b0a0bde53b4d8f8c667d48a733421fc17212c2e214ec59d0a258ef0
|
File details
Details for the file pyrkafka-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: pyrkafka-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e8fa839790e66a95fe5f34ecc9ac77fa6adcd3a0abfeba526532bd5c408ef8d
|
|
| MD5 |
95e50f647e55ece897efe72d17c14535
|
|
| BLAKE2b-256 |
a59036706e23ff4699000b857bc66a1a1845c66420e2d7cda820c8d43a374bde
|
File details
Details for the file pyrkafka-0.1.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: pyrkafka-0.1.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1280a0a83889d70e38f1c2b8df5384b8e71999de2a054cb3d177c8b7fcf8517c
|
|
| MD5 |
bdcdce4342a93e726e412d8611f36154
|
|
| BLAKE2b-256 |
4d4cc6fa0fbdf4e6147e2dd4411657f9b397ae74a5a197c91c1d8dfafaa303d5
|
File details
Details for the file pyrkafka-0.1.1-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: pyrkafka-0.1.1-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 750.7 kB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9699716f8b505a3a60ac16013d5bcf75b4775e1c9acfbc7ff6ff2c1da7c8f37a
|
|
| MD5 |
14da2075bcab56868e0a665f25ba02de
|
|
| BLAKE2b-256 |
33b75b23580c90cc9a5576e665877c1070bbf3e2d016116c1d08d468ee0a1654
|