Python bindings for rdfkafka Rust library
Project description
rdfkafka
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
pyrkafka-0.1.0.tar.gz
(8.1 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 pyrkafka-0.1.0.tar.gz.
File metadata
- Download URL: pyrkafka-0.1.0.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 |
9149e28dd643d61a233a3fe97a00bd4d5148b842acd7d650a75509aacd961f81
|
|
| MD5 |
a176f9ab4c27396fe907558ed7c4469f
|
|
| BLAKE2b-256 |
a8be2302f7bcba707210ac24926d8c0aa26a6af9590ced484c9ac5412c0f2291
|
File details
Details for the file pyrkafka-0.1.0-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: pyrkafka-0.1.0-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 |
8cc1111a8f079ca81131180e7b6c01fb77ca1cd645bd8c535e8dd780306a97df
|
|
| MD5 |
e1b4ee0f3db92582d97f1c600b9c013c
|
|
| BLAKE2b-256 |
d52e334d9a2d73d02cbc30c3844b07ffd7de0e850b2820c2bca7e6f350482623
|