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.20.tar.gz
(17.8 kB
view hashes)
Built Distribution
Close
Hashes for interface_gen-0.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f06b18e80acb5dccbecd471a9d8427ec83b0939497524ea330f717c4074601c |
|
MD5 | 9068c875d6a22478dd709cba0f08d711 |
|
BLAKE2b-256 | c29810d46dc89693409e391b07aa7d1b035cbfc15587c5d8f8bf7865c066f888 |