Skip to main content

Python bindings for rdfkafka Rust library

Project description

rdfkafka

PyPI version License

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrkafka-0.1.0-cp38-abi3-macosx_11_0_arm64.whl (750.7 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

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

Hashes for pyrkafka-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9149e28dd643d61a233a3fe97a00bd4d5148b842acd7d650a75509aacd961f81
MD5 a176f9ab4c27396fe907558ed7c4469f
BLAKE2b-256 a8be2302f7bcba707210ac24926d8c0aa26a6af9590ced484c9ac5412c0f2291

See more details on using hashes here.

File details

Details for the file pyrkafka-0.1.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyrkafka-0.1.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8cc1111a8f079ca81131180e7b6c01fb77ca1cd645bd8c535e8dd780306a97df
MD5 e1b4ee0f3db92582d97f1c600b9c013c
BLAKE2b-256 d52e334d9a2d73d02cbc30c3844b07ffd7de0e850b2820c2bca7e6f350482623

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page