aniketmaurya / lit-pubsub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Lightning component for GCP PubSub and Kafka messaging


Tests

About

This component lets you publish and subscribe to Kafka and GCP PubSub events.


Use the component

import lightning as L

from lit_kafka import KafkaRootFlow


if __name__ == "__main__":
    app = L.LightningApp(
        KafkaRootFlow("kafka-test", bootstrap_servers="localhost:9092", num_partitions=2)
    )

install

Use these instructions to install:

git clone https://github.com/PyTorchLightning/lightning-pubsub.git
cd lightning-lit_kafka
pip install -r requirements.txt
pip install -e .

About

License:Apache License 2.0


Languages

Language:Python 100.0%