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
- Create a virtual environment (optional but recommended), and activate it:
python -m venv venv
source venv/bin/activate
- Install the package:
python -m pip install interface-gen
- 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
- Run the generator:
ifgen -i -p my-protocols -o my-output
More Details
For more details see the source code docs:
- Python interface_gen/README.md
- Main README.md
- The code repostitory
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a58f768d45181075f7f1490f4a49d774d85c75555ef3ef91e7fa2f281f755d24
|
|
| MD5 |
97b446e1b061b5cb72e05c35f186eaba
|
|
| BLAKE2b-256 |
4c9161ae8ff40a2e1242fcc9e98b2f5cb4046568e63d9308108d1cc1d534320d
|
Provenance
The following attestation bundles were made for interface_gen-0.0.23.tar.gz:
Publisher:
publish.yml on getditto/interface-gen
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
interface_gen-0.0.23.tar.gz -
Subject digest:
a58f768d45181075f7f1490f4a49d774d85c75555ef3ef91e7fa2f281f755d24 - Sigstore transparency entry: 156734411
- Sigstore integration time:
-
Permalink:
getditto/interface-gen@5c65f212964a3bff7c9c0ef8fb7eaac25d00cc17 -
Branch / Tag:
refs/tags/v0.0.23 - Owner: https://github.com/getditto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5c65f212964a3bff7c9c0ef8fb7eaac25d00cc17 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db643e8a65466a6f0df5a1f5f0f7428a45a255d8f83d7bed56472b2c81b1830c
|
|
| MD5 |
4fd55df1951add96ea50cfd8f37b5820
|
|
| BLAKE2b-256 |
b422830d8d098c4ffbc4aaec54d4efbfa506d7e47e718e0f09ae70355451041f
|
Provenance
The following attestation bundles were made for interface_gen-0.0.23-py3-none-any.whl:
Publisher:
publish.yml on getditto/interface-gen
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
interface_gen-0.0.23-py3-none-any.whl -
Subject digest:
db643e8a65466a6f0df5a1f5f0f7428a45a255d8f83d7bed56472b2c81b1830c - Sigstore transparency entry: 156734412
- Sigstore integration time:
-
Permalink:
getditto/interface-gen@5c65f212964a3bff7c9c0ef8fb7eaac25d00cc17 -
Branch / Tag:
refs/tags/v0.0.23 - Owner: https://github.com/getditto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5c65f212964a3bff7c9c0ef8fb7eaac25d00cc17 -
Trigger Event:
push
-
Statement type: