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.23.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

interface_gen-0.0.23-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file interface_gen-0.0.23.tar.gz.

File metadata

  • Download URL: interface_gen-0.0.23.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for interface_gen-0.0.23.tar.gz
Algorithm Hash digest
SHA256 a58f768d45181075f7f1490f4a49d774d85c75555ef3ef91e7fa2f281f755d24
MD5 97b446e1b061b5cb72e05c35f186eaba
BLAKE2b-256 4c9161ae8ff40a2e1242fcc9e98b2f5cb4046568e63d9308108d1cc1d534320d

See more details on using hashes here.

Provenance

The following attestation bundles were made for interface_gen-0.0.23.tar.gz:

Publisher: publish.yml on getditto/interface-gen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file interface_gen-0.0.23-py3-none-any.whl.

File metadata

  • Download URL: interface_gen-0.0.23-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for interface_gen-0.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 db643e8a65466a6f0df5a1f5f0f7428a45a255d8f83d7bed56472b2c81b1830c
MD5 4fd55df1951add96ea50cfd8f37b5820
BLAKE2b-256 b422830d8d098c4ffbc4aaec54d4efbfa506d7e47e718e0f09ae70355451041f

See more details on using hashes here.

Provenance

The following attestation bundles were made for interface_gen-0.0.23-py3-none-any.whl:

Publisher: publish.yml on getditto/interface-gen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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