Skip to main content

Define data format schemas once and generate code for multiple languages and serialization frameworks.

Project description

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

interface_gen-0.0.17.tar.gz (17.4 kB view hashes)

Uploaded Source

Built Distribution

interface_gen-0.0.17-py3-none-any.whl (21.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page