Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.17 KB

dist-readme.md

File metadata and controls

52 lines (35 loc) · 1.17 KB

Interface Generator

Write your protocol specifications in a single language (Avro IDL) and automatically generate schema definitions, code, and documentation for multiple languages and serialization frameworks, including:

  • Protobuf (proto3)
  • Apache Avro Schema (.avsc)
  • JSON schema
  • XML schema
  • SQL DDL (create table)
  • .. and of the other formats supported by Avrotize.

Quick Start

  1. Create a virtual environment (optional but recommended), and activate it:
python -m venv venv
source venv/bin/activate

  1. Install the package:
python -m pip install interface-gen
  1. Set up your protocol definitions and output directory.
mkdir -p my-protocols/v1.0
mkdir my-output

Place your Avro IDL definition files (.avdl) in my-protocols/v1.0

  1. Run the generator:
ifgen -i -p my-protocols -o my-output

More Details

For more details see the source code docs: