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
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.18.tar.gz
(17.4 kB
view hashes)
Built Distribution
Close
Hashes for interface_gen-0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0395f3845d329c1a6acb9134bad80cac3441b786249b46b414e060c0b56cf663 |
|
MD5 | 3a186ea6d6ae895d2aa70ca78eded664 |
|
BLAKE2b-256 | b09bbfb9fc127fb8dd4a99c906e06e0144d9d0b79f86a6f7402358ff279ea6aa |