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.2.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.2-cp310-abi3-win_arm64.whl (20.1 kB view details)

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

tree_sitter_apache_avro_unofficial-0.1.2-cp310-abi3-musllinux_1_2_x86_64.whl (37.9 kB view details)

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

tree_sitter_apache_avro_unofficial-0.1.2-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.2-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.2-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.2-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.2-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.2.tar.gz.

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7baebb74c834963b0f1a3ece0a5e530d55b9d448641b947a10ea8c297a13ef47
MD5 0d7aa78e61ee49f8d0e903fd90fcfc4f
BLAKE2b-256 1d7e40a791a68cece1bd36e8ea199e7c17fd93bc89c163573709acff65dc1e4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.2-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 0e315c86a57c148a9f745fd9b96ac333b5830c0c95da2eeb09e0f152d74f3046
MD5 e23669bba269b7f816cfec2e21da67e5
BLAKE2b-256 8b96ed2a966cce41c82f3fd4c11de765c541da93f4f2e640424ab8ecfe07a0e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 576c02166d1e872ae603237448150af39284750253d3a8ff4ded03ff8e494b69
MD5 8392562743954c16630a545ba831c89c
BLAKE2b-256 422800d441954efae067aa521459718a613bc8ab66831b9d02e7b043f450962d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.2-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c75c774a4a23bfb2a44ed683fa1f90acb39fa834dec0b25b296c056f5172d2b9
MD5 1fa16ba737a5161adca037b41a02ef20
BLAKE2b-256 df12eb23082fc129081051abbfa53e51b320f299311b552bb575d49ac4fd5b80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.2-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 a0a9af04f76095dce722765d1e12402012623fa8a0e66710624e8450cfd4144f
MD5 c3f91f619519148e1993c170822d6d55
BLAKE2b-256 6bfa0681367e2e32fe3617e4d346c1352b02ac53092746708bada136e193f235

See more details on using hashes here.

File details

Details for the file tree_sitter_apache_avro_unofficial-0.1.2-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.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 aab9d88f663a5b1ab1c4b0c339f61781cce10ad49e0ad0f12f533e0c5262bd23
MD5 d376fb02291d727304ef1cd55b16a9b6
BLAKE2b-256 256bede0a30a68f178f900f7d4958a13569ca8af53e4990f62db530face9a623

See more details on using hashes here.

File details

Details for the file tree_sitter_apache_avro_unofficial-0.1.2-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.2-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 959b992902b6c5139cdf788d32c709d6fadbdabafc35d485404886e14668f214
MD5 1b101541aa1818e746d902f4d5710589
BLAKE2b-256 c00f0357c9804a4ba6de78f06b273837429049bd867c6a96a118f18677036efe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e41621d1325d12260f01e4a8fde4963583a1a40524542cf62f6f29ca9f0a03d2
MD5 3b0dbb2ce4a2e343abb0990a5cc19f31
BLAKE2b-256 658feca7f20c20531f68faeafcf8e04a1e0fee5c072037c3576248ca26945436

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_apache_avro_unofficial-0.1.2-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2f9b8dd101128c211a33c723783bd40b4c5597c16b765d37a1dbcab155db2576
MD5 08a4f8355f32b7fc51ab3e990412f5a9
BLAKE2b-256 1eae3fb986132969aa5f9ec3f5bdd0bed68f480b8968908a11f5491616092f51

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