GithubHelp home page GithubHelp logo

verisign / python-confluent-schemaregistry Goto Github PK

View Code? Open in Web Editor NEW
52.0 13.0 41.0 144 KB

A client for the Confluent Schema Registry API implemented in Python

License: Apache License 2.0

Python 100.00%

python-confluent-schemaregistry's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-confluent-schemaregistry's Issues

Recommended usage

Some of these classes are inside confluent_kafka.avro. Is that the recommended way to use now? Or will you be making a python release soon?

Why does MessageSerializer have to encode a dict only?

There are cases in a Kafka key, for example, that is a simple {"type": "string"} rather than a record. It would still be helpful to use the MessageSerializer. However, it doesn't permit non-dict's because of this check

        if not isinstance(record, dict):
            raise SerializerError("record must be a dictionary")

Any reason for this? Can it be removed?

Thanks.

why not use rest proxy of confluent io directly?

this is an interesting repo, but I have one question.
Why not use the restful proxy provided by confluent.io? it has the features of registering schemas, serializing and deserializing data using avro, json, etc. Besides, it has the build in feature of talking to kafka. Actually, one only needs to post and get something. What are the prods to use this instead of the production one?

ModuleNotFoundError - 'MessageSerializer', also 'MockSchemaRegistryClient'

Hi all
I am trying to use python-confluent-schemaregistry package.
Since pip install is not available, I did a git clone and then used the python setup.py install method.

The installation ended successfully with:
Finished processing dependencies for confluent-schemaregistry==0.1.1

But when creating some python 3 code like:

from confluent.schemaregistry.serializers import MessageSerializer, Util
from confluent.schemaregistry.client import CachedSchemaRegistryClient

or even

import confluent.schemaregistry.serializers

python cannot find both MessageSerializer and MockSchemaRegistryClient modules:

>>> from confluent.schemaregistry.client import CachedSchemaRegistryClient
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nvidia/kafka-test/python-confluent-schemaregistry/confluent/schemaregistry/client/__init__.py", line 17, in <module>
    from MockSchemaRegistryClient import *
ModuleNotFoundError: No module named 'MockSchemaRegistryClient'
>>> from confluent.schemaregistry.serializers import MessageSerializer, Util
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nvidia/kafka-test/python-confluent-schemaregistry/confluent/schemaregistry/serializers/__init__.py", line 12, in <module>
    from MessageSerializer import *
ModuleNotFoundError: No module named 'MessageSerializer'

This happens when installing the package system-wide and also in a virtualenv
And in python 3.5 and 3.6 also !!

any help on this issue ? Or is there a mistake on my side ?
regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.