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.1.0.tar.gz (17.3 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.1.0-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: interface_gen-0.1.0.tar.gz
  • Upload date:
  • Size: 17.3 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.1.0.tar.gz
Algorithm Hash digest
SHA256 811e1833490517096264e7147103ea62d148529b3a6737081911a606d4cb7c8d
MD5 9b567f4f853078f194ebbec34ba6ab16
BLAKE2b-256 f6f2532bdd726ff4a2fef754c7d141c2c4a31afd8eb1fbf15f7aa95f56baaf3c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: interface_gen-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.6 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fb869eeb9978966c153648f962b629291fcd7972b1d0788af035b3d7a60430c
MD5 829f46d006d9bdffc308edfa3652da04
BLAKE2b-256 6fef30924fdf16ac437e519376b4401e71faed9a7f5869bf318f9e27a9030ec8

See more details on using hashes here.

Provenance

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