Name | tree-sitter-pymanifest JSON |
Version |
0.4.0
JSON |
| download |
home_page | |
Summary | A tree-sitter parser for MANIFEST.in files |
upload_time | 2024-02-24 17:49:48 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.9 |
license | MIT |
keywords |
tree-sitter
parser
lexer
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
======================
tree-sitter-pymanifest
======================
|CI| |discord| |matrix| |pypi|
A tree-sitter parser for PyPA manifest files.
Python package
--------------
Installation
^^^^^^^^^^^^
.. code-block:: bash
pip install tree-sitter-pymanifest
Usage
^^^^^
.. code-block:: python
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
----------
* `Controlling files in the distribution <https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html>`_
* `Unix filename pattern matching <https://docs.python.org/3/library/fnmatch.html>`_
Editors
-------
| |c| Neovim
| |u| Helix
| |u| Emacs
| |u| Zed
.. |u| unicode:: U+00A0 U+00A0 U+2610
.. |c| unicode:: U+00A0 U+00A0 U+2611
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
.. |CI| image:: https://img.shields.io/github/actions/workflow/status/tree-sitter-grammars/tree-sitter-pymanifest/test.yml?logo=github&label=CI
:target: https://github.com/tree-sitter-grammars/tree-sitter-pymanifest/actions/workflows/test.yml
:alt: CI
.. |discord| image:: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
:target: https://discord.gg/w7nTvsVJhm
:alt: discord
.. |matrix| image:: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
:target: https://matrix.to/#/#tree-sitter-chat:matrix.org
:alt: matrix
.. |pypi| image:: https://img.shields.io/pypi/v/tree-sitter-pymanifest?logo=pypi&logoColor=ffd242
:target: https://pypi.org/project/tree-sitter-pymanifest/
:alt: pypi
Raw data
{
"_id": null,
"home_page": "",
"name": "tree-sitter-pymanifest",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "tree-sitter,parser,lexer",
"author": "",
"author_email": "ObserverOfTime <chronobserver@disroot.org>",
"download_url": "",
"platform": null,
"description": "======================\ntree-sitter-pymanifest\n======================\n\n|CI| |discord| |matrix| |pypi|\n\nA tree-sitter parser for PyPA manifest files.\n\nPython package\n--------------\n\nInstallation\n^^^^^^^^^^^^\n\n.. code-block:: bash\n\n pip install tree-sitter-pymanifest\n\nUsage\n^^^^^\n\n.. code-block:: python\n\n import tree_sitter_pymanifest as pymanifest\n\n with open('MANIFEST.in', 'r') as mf:\n # parse a MANIFEST.in file\n tree = pymanifest.parse(mf.read())\n # get the highlight groups\n hl_groups = pymanifest.highlights(tree)\n # run an arbitrary query\n dir_patterns = pymanifest.query(\"\"\"\n (command dir_pattern: (pattern) @dir_pattern)\n \"\"\", tree.root_node)\n\n\nReferences\n----------\n\n* `Controlling files in the distribution <https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html>`_\n* `Unix filename pattern matching <https://docs.python.org/3/library/fnmatch.html>`_\n\nEditors\n-------\n\n| |c| Neovim\n| |u| Helix\n| |u| Emacs\n| |u| Zed\n\n.. |u| unicode:: U+00A0 U+00A0 U+2610\n.. |c| unicode:: U+00A0 U+00A0 U+2611\n\n\nChangelog\n---------\n\nv0.4.0\n^^^^^^\n\n* Change bindings layout\n\nv0.3.0\n^^^^^^\n\n* Move to ``tree-sitter-grammars`` org\n\nv0.2.1\n^^^^^^\n\n* Drop Python 3.7 support\n* Remove injections queries\n* Use tree-sitter core highlight captures\n\nv0.2.0\n^^^^^^\n\n* Add Python package tests\n\nv0.1.1\n^^^^^^\n\n* Bundle queries in the package\n\n.. |CI| image:: https://img.shields.io/github/actions/workflow/status/tree-sitter-grammars/tree-sitter-pymanifest/test.yml?logo=github&label=CI\n :target: https://github.com/tree-sitter-grammars/tree-sitter-pymanifest/actions/workflows/test.yml\n :alt: CI\n\n.. |discord| image:: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord\n :target: https://discord.gg/w7nTvsVJhm\n :alt: discord\n\n.. |matrix| image:: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix\n :target: https://matrix.to/#/#tree-sitter-chat:matrix.org\n :alt: matrix\n\n.. |pypi| image:: https://img.shields.io/pypi/v/tree-sitter-pymanifest?logo=pypi&logoColor=ffd242\n :target: https://pypi.org/project/tree-sitter-pymanifest/\n :alt: pypi\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A tree-sitter parser for MANIFEST.in files",
"version": "0.4.0",
"project_urls": {
"Homepage": "https://github.com/tree-sitter-grammars/tree-sitter-pymanifest",
"Issues": "https://github.com/tree-sitter-grammars/tree-sitter-pymanifest/issues",
"Sponsor": "https://github.com/sponsors/ObserverOfTime"
},
"split_keywords": [
"tree-sitter",
"parser",
"lexer"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9a16c9dbf1269165a8e50aa55e93f405b4407a59f9fe703e45486fdb91939ecc",
"md5": "df90a2b02b3392117feacadeeda003ae",
"sha256": "3a751c1e655fd8d4ca06195e6c2c29bc6d2af2f9ca93bc0dd8c98ba2f75cac1c"
},
"downloads": -1,
"filename": "tree_sitter_pymanifest-0.4.0-cp39-abi3-macosx_10_9_universal2.whl",
"has_sig": false,
"md5_digest": "df90a2b02b3392117feacadeeda003ae",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 15608,
"upload_time": "2024-02-24T17:49:48",
"upload_time_iso_8601": "2024-02-24T17:49:48.279858Z",
"url": "https://files.pythonhosted.org/packages/9a/16/c9dbf1269165a8e50aa55e93f405b4407a59f9fe703e45486fdb91939ecc/tree_sitter_pymanifest-0.4.0-cp39-abi3-macosx_10_9_universal2.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "05d363576c078d9fd926e7ba712d724fbcbdded613290971010a22c2404623c9",
"md5": "8902ae37c940fc27d06e8644163d6d2b",
"sha256": "a562da94837e4e9b905357f43075c8582fd14422670aa244898f5484d2f05683"
},
"downloads": -1,
"filename": "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",
"has_sig": false,
"md5_digest": "8902ae37c940fc27d06e8644163d6d2b",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 11714,
"upload_time": "2024-02-24T17:49:49",
"upload_time_iso_8601": "2024-02-24T17:49:49.451480Z",
"url": "https://files.pythonhosted.org/packages/05/d3/63576c078d9fd926e7ba712d724fbcbdded613290971010a22c2404623c9/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",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "70c73a3e183e35f039e7e1c58bfbc9cd65ea87c32a1cca22c9dc82d1f9f84407",
"md5": "f95cf59eb009a2006704175f9bad5b22",
"sha256": "ae757fb106093676d6e9a3ed05567c96cab238004f43c54b3be7474f62ffe5ce"
},
"downloads": -1,
"filename": "tree_sitter_pymanifest-0.4.0-cp39-abi3-musllinux_1_1_x86_64.whl",
"has_sig": false,
"md5_digest": "f95cf59eb009a2006704175f9bad5b22",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 11989,
"upload_time": "2024-02-24T17:49:50",
"upload_time_iso_8601": "2024-02-24T17:49:50.930366Z",
"url": "https://files.pythonhosted.org/packages/70/c7/3a3e183e35f039e7e1c58bfbc9cd65ea87c32a1cca22c9dc82d1f9f84407/tree_sitter_pymanifest-0.4.0-cp39-abi3-musllinux_1_1_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "921a47f10b94998429277e45b6f53e38324065bb24a0d2f16847fc1941e4f0ec",
"md5": "04a1ab7dfd1397440e77529e83d6250c",
"sha256": "5e73f9e89112256558374c7dffa26ba7e2989837186c72ef754699169d83419e"
},
"downloads": -1,
"filename": "tree_sitter_pymanifest-0.4.0-cp39-abi3-win_amd64.whl",
"has_sig": false,
"md5_digest": "04a1ab7dfd1397440e77529e83d6250c",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 14641,
"upload_time": "2024-02-24T17:49:52",
"upload_time_iso_8601": "2024-02-24T17:49:52.389932Z",
"url": "https://files.pythonhosted.org/packages/92/1a/47f10b94998429277e45b6f53e38324065bb24a0d2f16847fc1941e4f0ec/tree_sitter_pymanifest-0.4.0-cp39-abi3-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-24 17:49:48",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tree-sitter-grammars",
"github_project": "tree-sitter-pymanifest",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "tree-sitter-pymanifest"
}