Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tree-sitter-grammars/tree-sitter-requirements

pip requirements grammar for tree-sitter
https://github.com/tree-sitter-grammars/tree-sitter-requirements

parser requirements tree-sitter

Last synced: 16 days ago
JSON representation

pip requirements grammar for tree-sitter

Awesome Lists containing this project

README

        

========================
tree-sitter-requirements
========================

|CI| |discord| |matrix| |pypi|

A tree-sitter parser for pip requirements files.

Python package
--------------

Installation
^^^^^^^^^^^^

.. code-block:: bash

pip install tree-sitter-requirements

References
----------

* `Requirements File Format `_
* `Dependency Specifiers `_
* `Version Specifiers `_
* `VCS Support `_

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

* Update bindings
* Remove custom functions
* Drop Python 3.8 support

v0.3.3
^^^^^^

* Fix library compilation

v0.3.2
^^^^^^

* Fix platform detection code

v0.3.1
^^^^^^

* Replace deprecated resource API

v0.3.0
^^^^^^

* Change bindings layout

v0.2.0
^^^^^^

* Move to ``tree-sitter-grammars`` org

v0.1.5
^^^^^^

* Resolve ``_version_list`` conflict
* Fix inline comments

v0.1.4
^^^^^^

* Make URL scheme case-insensitive

v0.1.3
^^^^^^

* Support per-requirement options
* Parse paths and URLs in options

v0.1.2
^^^^^^

* Support environment variables in URLs

v0.1.1
^^^^^^

* Fix environment markers

.. |CI| image:: https://img.shields.io/github/actions/workflow/status/tree-sitter-grammars/tree-sitter-requirements/test.yml?logo=github&label=CI
:target: https://github.com/tree-sitter-grammars/tree-sitter-requirements/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-requirements?logo=pypi&logoColor=ffd242
:target: https://pypi.org/project/tree-sitter-requirements/
:alt: pypi