{"id":23380547,"url":"https://github.com/flix-tech/kafka-schema-registry","last_synced_at":"2025-04-10T22:42:50.960Z","repository":{"id":44645221,"uuid":"368550750","full_name":"flix-tech/kafka-schema-registry","owner":"flix-tech","description":"Kafka library with a schema registry integration ","archived":false,"fork":false,"pushed_at":"2025-03-04T11:47:33.000Z","size":49,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T14:14:33.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flix-tech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-18T13:59:16.000Z","updated_at":"2025-03-04T11:47:32.000Z","dependencies_parsed_at":"2022-08-30T16:51:16.078Z","dependency_job_id":null,"html_url":"https://github.com/flix-tech/kafka-schema-registry","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flix-tech%2Fkafka-schema-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flix-tech%2Fkafka-schema-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flix-tech%2Fkafka-schema-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flix-tech%2Fkafka-schema-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flix-tech","download_url":"https://codeload.github.com/flix-tech/kafka-schema-registry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312208,"owners_count":21082638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-21T20:16:42.644Z","updated_at":"2025-04-10T22:42:50.946Z","avatar_url":"https://github.com/flix-tech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kafka-schema-registry\n\nThis library allows you to create topics on Kafka topics, associated with a\nConfluent Schema Registry, and publish messages on them.\n\nIt takes care of:\n* creating the topic\n* publishing the associated schema (or updating an existing one)\n* serializing and publishing messages to Kafka\n\nIt works with [kafka-python][], and extra arguments are forwarded to it.\n\n[kafka-python]: https://github.com/dpkp/kafka-python\n\n\n## Installing\n\n```sh\npip install kafka-schema-registry\n```\n\n## Usage\n\n```python\nfrom kafka_schema_registry import prepare_producer\n\nSAMPLE_SCHEMA = {\n    \"type\": \"record\",\n    \"name\": \"TestType\",\n    \"fields\" : [\n        {\"name\": \"age\", \"type\": \"int\"},\n        {\"name\": \"name\", \"type\": [\"null\", \"string\"]}\n    ]\n}\n\n\nproducer = prepare_producer(\n        ['localhost:9092'],\n        f'http://schemaregistry',\n        topic_name,\n        1,\n        1,\n        value_schema=SAMPLE_SCHEMA,\n)\n\nproducer.send(topic_name, {'age': 34})\nproducer.send(topic_name, {'age': 9000, 'name': 'john'})\n```\n\n## Running the tests\n\nThe test requires Docker in order to start a local Redpanda instance.\n\n* `make start-redpanda` to start the server\n* `make test` to configure a virtualenv and run the tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflix-tech%2Fkafka-schema-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflix-tech%2Fkafka-schema-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflix-tech%2Fkafka-schema-registry/lists"}