avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Groth <sgr...@yahoo-inc.com>
Subject Re: Using Avro IDL from python
Date Mon, 26 Oct 2015 20:59:27 GMT
At this point, it only supports schemas. I don't know enough about the protocol interface in
python to know how hard it would be to add. 
Python 3 support is also missing.


     On Monday, October 26, 2015 3:33 PM, David Lauzon <davidonlaptop@gmail.com> wrote:

 Thanks Sam,

The PR is up-to-date with the main branch, great!

Does it support Avro protocols as well, or only schemas?


On Mon, Oct 26, 2015 at 4:22 PM, Sam Groth <sgroth@yahoo-inc.com> wrote:

Hi David,
I do not believe there is currently a way to read the Java IDL in python. A while back I wrote
a python IDL, but never got around to sending it out. See https://github.com/apache/avro/pull/53


     On Monday, October 26, 2015 2:30 PM, David Lauzon <davidonlaptop@gmail.com> wrote:

 Hi all,
Is there a way to use an Avro IDL file from Python?
For example:
Assuming this very simple Avro IDL (datatypes.avdl):@namespace("avro.examples.datatypes")
protocol MyProtocol {
record MyAvroRecord {
   A mandatory string.
  string str;
}How can I write "hello world" into an Avro data file using the above schema in Python ?


View raw message