A tree-sitter parser for MANIFEST.in files
Project description
A tree-sitter parser for PyPA manifest files.
Python package
Installation
pip install tree-sitter-pymanifest
Usage
import tree_sitter_pymanifest as pymanifest
with open('MANIFEST.in', 'r') as mf:
# parse a MANIFEST.in file
tree = pymanifest.parse(mf.read())
# get the highlight groups
hl_groups = pymanifest.highlights(tree)
# run an arbitrary query
dir_patterns = pymanifest.query("""
(command dir_pattern: (pattern) @dir_pattern)
""", tree.root_node)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
File details
Details for the file tree_sitter_pymanifest-0.2.1-cp38-abi3-win_amd64.whl
.
File metadata
- Download URL: tree_sitter_pymanifest-0.2.1-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 13.6 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eeb1f382bf382f512b7395a8de1b15d90a554d6e72e56e022ab56c9bbd8355c |
|
MD5 | ca78e0e611c68d5b52a274662697ecfc |
|
BLAKE2b-256 | 9bf257317ba180c9e2826a2959fd9a03e51b07892e1e72bd4df1f94e417743a3 |
Provenance
File details
Details for the file tree_sitter_pymanifest-0.2.1-cp38-abi3-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: tree_sitter_pymanifest-0.2.1-cp38-abi3-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 10.9 kB
- Tags: CPython 3.8+, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9567487a8744a80e3f89260cd1c045dbdeac3c33ddd6299bb0116682b5b708c |
|
MD5 | c7878e4ccad81dff5b33ac7f27f81927 |
|
BLAKE2b-256 | 87e3bf6f1e3b444d148c76bb4278e91baf7b180a7c5101eb299147d1e66ef0e6 |
Provenance
File details
Details for the file tree_sitter_pymanifest-0.2.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: tree_sitter_pymanifest-0.2.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 10.6 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 585c1e3c8e79d6e7e5a89161cab831b9ee79f624a64e12da40698ee84af0fbbd |
|
MD5 | e14e7dac79bdde67d7415997c2adf257 |
|
BLAKE2b-256 | 0bf1b0f24c617405ddc68fc2f6bedd3cbc33df783d32c08c5d519a032c962162 |
Provenance
File details
Details for the file tree_sitter_pymanifest-0.2.1-cp38-abi3-macosx_10_9_universal2.whl
.
File metadata
- Download URL: tree_sitter_pymanifest-0.2.1-cp38-abi3-macosx_10_9_universal2.whl
- Upload date:
- Size: 14.0 kB
- Tags: CPython 3.8+, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8ba997d09ee6ff1fbf2604af6e9443276006a5c0bc9398859c2ba9395a239c6 |
|
MD5 | a6795009927b8b4fe4a68c8183719e52 |
|
BLAKE2b-256 | bdc89ebc9edadee96782a055009b236845e6115a8c9001edce02d8f2a8f208f2 |