Skip to main content

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


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

tree_sitter_pymanifest-0.2.1-cp38-abi3-win_amd64.whl (13.6 kB view details)

Uploaded CPython 3.8+ Windows x86-64

tree_sitter_pymanifest-0.2.1-cp38-abi3-musllinux_1_1_x86_64.whl (10.9 kB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ x86-64

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 (10.6 kB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

tree_sitter_pymanifest-0.2.1-cp38-abi3-macosx_10_9_universal2.whl (14.0 kB view details)

Uploaded CPython 3.8+ macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file tree_sitter_pymanifest-0.2.1-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_pymanifest-0.2.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3eeb1f382bf382f512b7395a8de1b15d90a554d6e72e56e022ab56c9bbd8355c
MD5 ca78e0e611c68d5b52a274662697ecfc
BLAKE2b-256 9bf257317ba180c9e2826a2959fd9a03e51b07892e1e72bd4df1f94e417743a3

See more details on using hashes here.

Provenance

File details

Details for the file tree_sitter_pymanifest-0.2.1-cp38-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_pymanifest-0.2.1-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 c9567487a8744a80e3f89260cd1c045dbdeac3c33ddd6299bb0116682b5b708c
MD5 c7878e4ccad81dff5b33ac7f27f81927
BLAKE2b-256 87e3bf6f1e3b444d148c76bb4278e91baf7b180a7c5101eb299147d1e66ef0e6

See more details on using hashes here.

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

File hashes

Hashes for 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
Algorithm Hash digest
SHA256 585c1e3c8e79d6e7e5a89161cab831b9ee79f624a64e12da40698ee84af0fbbd
MD5 e14e7dac79bdde67d7415997c2adf257
BLAKE2b-256 0bf1b0f24c617405ddc68fc2f6bedd3cbc33df783d32c08c5d519a032c962162

See more details on using hashes here.

Provenance

File details

Details for the file tree_sitter_pymanifest-0.2.1-cp38-abi3-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for tree_sitter_pymanifest-0.2.1-cp38-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a8ba997d09ee6ff1fbf2604af6e9443276006a5c0bc9398859c2ba9395a239c6
MD5 a6795009927b8b4fe4a68c8183719e52
BLAKE2b-256 bdc89ebc9edadee96782a055009b236845e6115a8c9001edce02d8f2a8f208f2

See more details on using hashes here.

Provenance

Supported by

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