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.21.tar.gz (17.7 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.21-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: interface_gen-0.0.21.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for interface_gen-0.0.21.tar.gz
Algorithm Hash digest
SHA256 8ba30b3415afd6ba5a8cb346dcb1165bce697f1dc2402b317ca9244c6a2fad59
MD5 4fb998a51d95a896caff194a50e70698
BLAKE2b-256 27d6ef14fe08b91987e9709017397a747df03f255fb70f078dd320bd954fb4e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for interface_gen-0.0.21.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.21-py3-none-any.whl.

File metadata

  • Download URL: interface_gen-0.0.21-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for interface_gen-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 d1777428edc5f06ff279b8f981454e9b43336093e3ebd2328685905c42ff02ff
MD5 62225b1d1691c8b026067e8a7bdaad96
BLAKE2b-256 56f211d9377677ce9315a001ae7ef869855f61b5a783ea909dbf03d3e40f124e

See more details on using hashes here.

Provenance

The following attestation bundles were made for interface_gen-0.0.21-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