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>]

Convert Avro schema to Kusto table declaration

avrotize a2k --avsc <path_to_avro_schema_file> --kusto <path_to_kusto_kql_file> [--record-type <record_type>]

Convert Avro schema to T-SQL table definition

avrotize a2tsql --avsc <path_to_avro_schema_file> --tsql <path_to_sql_file> [--record-type <record_type>]

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


Release history Release notifications | RSS feed

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.3.0.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

avrotize-0.3.0-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file avrotize-0.3.0.tar.gz.

File metadata

  • Download URL: avrotize-0.3.0.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for avrotize-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7a30242a3abe6aabf2a6de960e91bd599f493c68d204fcf65144737a40fbd996
MD5 b7be3b580d7dadb444ebb74b0728f897
BLAKE2b-256 9172ae906bac2af81a1511d06f11b731e9e76e8d03f951b4296f6df840a9aa01

See more details on using hashes here.

File details

Details for the file avrotize-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: avrotize-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for avrotize-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc48f744a6f9ab3cabd991d37c09c478587373254cadd3bc2d58f04b1d06fe47
MD5 bc5fd728dae91d1c4249f6250f7e362e
BLAKE2b-256 e690305bee6a80a5f0c459dce07d4bda45740d8fead4648f08ed7afb1a3556a3

See more details on using hashes here.

Supported by

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