Skip to main content

A tree-sitter parser for MANIFEST.in files

Project description

CI discord matrix pypi

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.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


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.3.0-cp38-abi3-win_amd64.whl (14.3 kB view details)

Uploaded CPython 3.8+ Windows x86-64

tree_sitter_pymanifest-0.3.0-cp38-abi3-musllinux_1_1_x86_64.whl (11.4 kB view details)

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

tree_sitter_pymanifest-0.3.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.2 kB view details)

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

tree_sitter_pymanifest-0.3.0-cp38-abi3-macosx_10_9_universal2.whl (15.1 kB view details)

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

File details

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

File metadata

File hashes

Hashes for tree_sitter_pymanifest-0.3.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 804d4179afc1aec48b92a9b1e0243bd33770f2de79ec68e3386c5ca9f548e1eb
MD5 ebf9d16d7c42f4a155741be0e0f0451d
BLAKE2b-256 bedef67d055f71e9e540ece4aa9882262568eaf994f1fc39460900991031520f

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tree_sitter_pymanifest-0.3.0-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 b0333bd4fdd621d376fa735a8e00a8962153802a18e05ef72863c4f042c85c63
MD5 76f06186311e34ab2a96a63e5e67709d
BLAKE2b-256 d96372388819d7ee9aa8815910eadc51c1c8f357b50c79ed6229be10189e3714

See more details on using hashes here.

Provenance

File details

Details for the file tree_sitter_pymanifest-0.3.0-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.3.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 74e0b326887293c9b9c6c2dbbbfa354bf9d78666787499cc046737001bc11417
MD5 aa7dcb9920ed9c9bb52e2053d5a13d30
BLAKE2b-256 c853ef93d44c156168ecffaf5d75aa1ab2b35f9ce219e2defbb87b92d622b0e3

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tree_sitter_pymanifest-0.3.0-cp38-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6390e795e38fd0698dc04b56741df4919c9488e6081a47552c8c3395ce79f068
MD5 27da3ce05f1d5c629319c3adbecf5795
BLAKE2b-256 6e72ca992903f352deaffae5633269ad2a408635df7b9e4a1e82f5d60db70f9c

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