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.19.tar.gz
(17.4 kB
view hashes)
Built Distribution
Close
Hashes for interface_gen-0.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70b45b2eb87a85eae94fa7ebfef78c9fc710ec611dfd43de2a74e939d24ed437 |
|
MD5 | 198cc5835a678ef0a2aff473478060d9 |
|
BLAKE2b-256 | d0fe7e748cbf1b66dd598702c0002f08930daa7c8194cf5c396749652b1f2557 |