Metadata-Version: 2.1
Name: kafka_schema_registry
Version: 0.0.2
Summary: Kafka and schema registry integration
Home-page: https://github.com/flix-tech/kafka-schema-registry
Author: FlixTech
Author-email: open-source@flixbus.com
License: MIT
Project-URL: Changelog, https://github.com/flix-tech/kafka-schema-registry/blob/master/CHANGELOG.md
Project-URL: Source, https://github.com/flix-tech/kafka-schema-registry
Description: # kafka-schema-registry
        
        This library allows you to create topics on Kafka associated with a Confluent schema, and publish messages on them.
        
        It takes care of:
        * creating the topic
        * publishing the associated schema (or updating an existing one)
        * serializing and publishing messages to Kafka
        
        ## Usage
        
        ```python3
        from kafka_schema_registry import prepare_producer
        
        SAMPLE_SCHEMA = {
        "type": "record",
        "name": "TestType",
        "fields" : [
            {"name": "age", "type": "int"},
            {"name": "name", "type": ["null", "string"]}
        ]
        }
        
        
        producer = prepare_producer(
                ['localhost:9092'],
                f'http://schemaregistry',
                topic_name,
                1,
                1,
                value_schema=SAMPLE_SCHEMA,
        )
        
        producer.send(topic_name, {'age': 34})
        producer.send(topic_name, {'age': 9000, 'name': 'john'})
        ```
        
        ## Run the test
        
        The test requires Docker in order to start a local Redpanda instance.
        
        * `make start-redpanda` to start the server
        * `make test` to configure a virtualenv and run the tests
        
Keywords: kafka schema-registry
Platform: UNKNOWN
Requires-Python: >=3.7
Description-Content-Type: text/markdown
