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.17.tar.gz
(17.4 kB
view hashes)
Built Distribution
Close
Hashes for interface_gen-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08a1bdeadb731c69fe85ae6d04c44eed245c51d2509bd28e50fc0eb53bb243c6 |
|
MD5 | 442bbe692bbdb2298d1c56af0ff8579f |
|
BLAKE2b-256 | 90d99dc88c6310ed2cb296d194383f57400bf68951a095069883064a50f7cbe6 |