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.0-cp38-abi3-macosx_10_9_universal2.whl (14.0 kB view details)

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

tree_sitter_pymanifest-0.2.0-cp37-abi3-win_amd64.whl (13.6 kB view details)

Uploaded CPython 3.7+ Windows x86-64

tree_sitter_pymanifest-0.2.0-cp37-abi3-musllinux_1_1_x86_64.whl (10.9 kB view details)

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

tree_sitter_pymanifest-0.2.0-cp37-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.7+ manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

tree_sitter_pymanifest-0.2.0-cp37-abi3-macosx_10_9_x86_64.whl (8.6 kB view details)

Uploaded CPython 3.7+ macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for tree_sitter_pymanifest-0.2.0-cp38-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 45d6c0410da9d2a74ebae4ac680742c172e1ea8d162cffd5eb25cbaeab1fc7d7
MD5 40b2ad337765e259913423baa6b0e534
BLAKE2b-256 02e0ff5d5954bab0225e4064304b864b4e7075e029dcf9bf22d152c1f08e3e51

See more details on using hashes here.

Provenance

File details

Details for the file tree_sitter_pymanifest-0.2.0-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_pymanifest-0.2.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c41c60a24e625cdf4883dbf244b04b4e448100b342bcba39aee299d873c7ffbf
MD5 fd393e7fd66c03d5c45c1a7e826cc50e
BLAKE2b-256 0582f45700dfbf7693f876bbd2246d2f1974bddce1345d0ee3061be14b40631b

See more details on using hashes here.

Provenance

File details

Details for the file tree_sitter_pymanifest-0.2.0-cp37-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_pymanifest-0.2.0-cp37-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 d8370e8131f46eb210000f4ac6e41af73a7fdc4d6a73dfa0065a2e30a37f5777
MD5 edc4af781a787d340dab69c59f832b5c
BLAKE2b-256 ea81d2a37892865961462638bfda600d3217f8f37a0ee9e22b7a2dda965044d0

See more details on using hashes here.

Provenance

File details

Details for the file tree_sitter_pymanifest-0.2.0-cp37-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.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1378cd07c79af629ec72d5779c5ccc5033cc5c25b5f0222964b1ece1dbe63646
MD5 14b388e81e4fa5b4df16d96ddd86ca5f
BLAKE2b-256 d701f70be27f54c08a235e2c11ee20d92c12f8eaa54aa5e4bc57fe493ef62471

See more details on using hashes here.

Provenance

File details

Details for the file tree_sitter_pymanifest-0.2.0-cp37-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_pymanifest-0.2.0-cp37-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 12d960e30b9645a45e7646ced65b25f8f8846d43f11e4e20616e24247aaa73a6
MD5 870936ec33fb7dfae3f9d838dab656a5
BLAKE2b-256 a2e8c5b5dbd2d67adeeb03a3ae7462f051e921fe39bb5197b4396840c5ddb43a

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