Skip to main content

Tools to convert from and to Avro Schema from various other schema languages.

Project description

Avrotize

Avrotize is a command-line tool that allows you to convert between different schema formats: Avro, Proto, XML Schema and JSON Schema. It is designed to be easy to use and flexible, supporting a variety of use cases.

Installation

You can install Avrotize from PyPI:

pip install avrotize

Usage

Avrotize provides several commands for converting between different schema formats.

Convert Proto schema to Avro schema

avrotize p2a --proto <path_to_proto_file> --avsc <path_to_avro_schema_file>

Convert Avro schema to Proto schema

avrotize a2p --proto <path_to_proto_file> --avsc <path_to_avro_schema_file>

Convert JSON schema to Avro schema

avrotize j2a --jsons <path_to_json_schema_file> --avsc <path_to_avro_schema_file> [--namespace <avro_schema_namespace>]

Convert XML Schema (XSD) to Avro schema

avrotize x2a --xsd <path_to_xsd_file> --avsc <path_to_avro_schema_file> [--namespace <avro_schema_namespace>]

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

Avrotize is released under the Apache License. See the LICENSE file for more details.

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

avrotize-0.2.2.tar.gz (21.9 kB view hashes)

Uploaded Source

Built Distribution

avrotize-0.2.2-py3-none-any.whl (30.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page