Skip to main content

Unofficial Apache Avro Language Parser for the IDL Language

Project description

Tree Sitter Apache Avro

Unofficial Python release. This package (tree-sitter-apache-avro-unofficial) is an unofficial PyPI distribution of sebimarkgraf/tree-sitter-apache-avro, which is itself a fork of victorhqc/tree-sitter-apache-avro. All grammar and parser logic belongs to the original authors. This release adds only the missing Python packaging. Maintained by Laszlo Babartzy.

Introduction

This is an unofficial Apache Avro IDL (.avdl) based on the official specs:

If you notice any bug or problem, please submit an issue or make a pull request. Any contribution is welcomed and needed.

Development

Requirements:

All the parsing logic is specified in grammar.js at the root level. To see if the changes made to it are working, run the tests and compare the results.

npm test:parser

A playground is also available to test the parser (though it needs Docker to run)

npm start

More information about how to write or use the tree parser can be found here: http://tree-sitter.github.io/tree-sitter/

To test the bindings you can also do the following

tree-sitter parse ./test/protocol.avdl
tree-sitter parse ./test/schema.avdl

To check for highlights, run the following

tree-sitter highlight --check ./test/schema.avdl
tree-sitter highlight --check ./test/protocol.avdl

Just make sure to include the local directory where you have this parser in the local tree-sitter configuration. For example, if I have this path under Documents/Code/tree-sitter-apache-avro then the config should be

{
  "parser-directories": [
    "/Users/my_user/github",
    "/Users/my_user/src",
    "/Users/my_user/source",
    "/Users/my_user/projects",
    "/Users/my_user/dev",
    "/Users/my_user/git",
    "/Users/my_user/Documents/Code"
  ],
}

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

tree_sitter_apache_avro_unofficial-0.1.1.tar.gz (29.0 kB view details)

Uploaded Source

Built Distributions

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

tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-win_arm64.whl (20.1 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-win_amd64.whl (20.6 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-musllinux_1_2_x86_64.whl (37.8 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-musllinux_1_2_aarch64.whl (39.4 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (40.9 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (38.9 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-macosx_11_0_arm64.whl (19.6 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl (19.1 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

Details for the file tree_sitter_apache_avro_unofficial-0.1.1.tar.gz.

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e9505d2055255ac8a134ce9aecbeca6804d32aae288a5950d171eccd6a0f988e
MD5 b1daf2ae7039fb857527b7e785c686b3
BLAKE2b-256 d488e4550d61a373faaad568272a13e0b544d2f289f36d0dd36ecc978da6dd34

See more details on using hashes here.

File details

Details for the file tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 e76855f7e6943f128a2c999107f4e204bcd1445991141690a7cd910802c977aa
MD5 7bbbc8c75f0834beeefa0cf806b54cec
BLAKE2b-256 7c6f4725e37a151a5586f39c37d304f729add1ecf69b24a637960a6f9880f398

See more details on using hashes here.

File details

Details for the file tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7a12cc5621fdb2bc5c5d728cb5d5e4f0725f847c2c32134d4c27fb38d9270576
MD5 b672b2dcd22952b68f3b4abf8e977244
BLAKE2b-256 9ec6c81869530c9dd1cffbed5ecbf3b0e5b3cb26d092c5ef1320ef0a954ab45a

See more details on using hashes here.

File details

Details for the file tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7b705fa5c153b0282952d252231c54449c72040ade16d63c24f96a9fe489ac60
MD5 cf8d4234c21d0a148cc9dcdf3328cfcf
BLAKE2b-256 41ec8a17d3f05027d50e9436cd20088d7c1729205743378dcfaf4b65e9e9b461

See more details on using hashes here.

File details

Details for the file tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 32258a188506865f6f4511f847d5b9a3d22140ee66310152d2d532f34a1c0dd9
MD5 20429f499409fb6ae2c78453614e4748
BLAKE2b-256 a448d7e5f49edade18402e6841e1f48b78f8e2aec5d5bf3cfc6705f9ac98fa45

See more details on using hashes here.

File details

Details for the file tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e7f8fe12cbcb5e69c780ccf7eb9ff6ead20be2043916e29bc7e80a9899dd8470
MD5 a1a78866fcc4f3494218d11e0c8c7442
BLAKE2b-256 42907478a9095d3058a5e3464a86d6d94caae4a73b0b37be0eb1523cb7932d13

See more details on using hashes here.

File details

Details for the file tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4fac3316fea67847e866da5a8a1ade8f62d428263ddb2c94a4cba9d439af26c2
MD5 010bb3103a6674d7c4dfc765ee2aa97c
BLAKE2b-256 c23d2443c29a48c39cdf009ad47b8159b85360a081dae38865e6fbe5158800b3

See more details on using hashes here.

File details

Details for the file tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4fe84df53dbfba6e444f9ed1ddbaef37ee0fd740c80533fa488522caf2f3898b
MD5 35201f9496cc8400018bb193dcfc6649
BLAKE2b-256 af347be4ecce4ef13b07c6dc754be5b353d40ea6a39d2cb8c6bcecf405563a65

See more details on using hashes here.

File details

Details for the file tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9d3fbc6ca64fd95d2ec10aacc30d32f7808c7b4a2ae3e51ef2dbd25cd475cbb6
MD5 8936763a38c847830ab5ffdfabc0ac72
BLAKE2b-256 536a7199f37880f297ca9e0b1628178004d06dbad759dcde5c06ad1438dec6d8

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