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)
References
Editors
☑ Neovim
☐ Helix
☐ Emacs
☐ Zed
Changelog
v0.4.0
Change bindings layout
v0.3.0
Move to tree-sitter-grammars org
v0.2.1
Drop Python 3.7 support
Remove injections queries
Use tree-sitter core highlight captures
v0.2.0
Add Python package tests
v0.1.1
Bundle queries in the package
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
Close
Hashes for tree_sitter_pymanifest-0.4.0-cp39-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e73f9e89112256558374c7dffa26ba7e2989837186c72ef754699169d83419e |
|
MD5 | 04a1ab7dfd1397440e77529e83d6250c |
|
BLAKE2b-256 | 921a47f10b94998429277e45b6f53e38324065bb24a0d2f16847fc1941e4f0ec |
Close
Hashes for tree_sitter_pymanifest-0.4.0-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae757fb106093676d6e9a3ed05567c96cab238004f43c54b3be7474f62ffe5ce |
|
MD5 | f95cf59eb009a2006704175f9bad5b22 |
|
BLAKE2b-256 | 70c73a3e183e35f039e7e1c58bfbc9cd65ea87c32a1cca22c9dc82d1f9f84407 |
Close
Hashes for tree_sitter_pymanifest-0.4.0-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a562da94837e4e9b905357f43075c8582fd14422670aa244898f5484d2f05683 |
|
MD5 | 8902ae37c940fc27d06e8644163d6d2b |
|
BLAKE2b-256 | 05d363576c078d9fd926e7ba712d724fbcbdded613290971010a22c2404623c9 |
Close
Hashes for tree_sitter_pymanifest-0.4.0-cp39-abi3-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a751c1e655fd8d4ca06195e6c2c29bc6d2af2f9ca93bc0dd8c98ba2f75cac1c |
|
MD5 | df90a2b02b3392117feacadeeda003ae |
|
BLAKE2b-256 | 9a16c9dbf1269165a8e50aa55e93f405b4407a59f9fe703e45486fdb91939ecc |