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.22.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.22-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: interface_gen-0.0.22.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.22.tar.gz
Algorithm Hash digest
SHA256 6fcafbb148180da9389bbedfdc7a7ce98b494ea0873b2ff28e3dc906498275fe
MD5 700b1edf91dc03ade1ae35a0845f0072
BLAKE2b-256 f98365c6b3d3cd7ba8b303506105d072f6f8632c5562114cac4a326fc05fea39

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: interface_gen-0.0.22-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.22-py3-none-any.whl
Algorithm Hash digest
SHA256 16d6fd3b2009faa0962e38f09cca2a68d3370c951050a3c676221be6c046d1e5
MD5 b0a8b7366b9e39787cd6fc982c89aac4
BLAKE2b-256 e9673a170b0ff55795d2d852b4f62c3a4eec3856ccfccfa5ac3b0d95a1973c1b

See more details on using hashes here.

Provenance

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