{"repo":"autosoft-dev/tree-hugger","free":true,"listed":false,"github":"https://github.com/autosoft-dev/tree-hugger","clone":"git clone https://github.com/autosoft-dev/tree-hugger.git","description":"A light-weight, extendable, high level, universal code parser built on top of tree-sitter","language":"Python","stars":132,"topics":["python","parsing","tree-sitter","cli","ast","languages","parser","universal","python-binding","machine-learning-on-source-code"],"license":"MIT","category":"cli-tools","readme_excerpt":"For People in a Hurry :) tree-hugger Mine source code repositories at scale. Easily. Tree-hugger is a light-weight, high level library which provides Pythonic APIs to mine trough Git repositories (it works on any collection of supported code files, actually). Tree-hugger is built on top of tree-sitter. Covered languages: Python PHP Java JavaScript C++ System Requirement: Python 3.6 Contributors Made with contributors-img. Contents Table of contents --- - Installation - Setup - Hello world example - API reference - Extending tree-hugger - Adding languages - Adding queries - Roadmap --- Installation From pip: From Source: The installation process is tested in macOS Mojave, we have a separate docker binding for compiling the libraries for Linux and soon this library will be integrated in that as well You may need to install libgit2. In case you are in mac just use brew install libgit2 Setup Getting your .so files Update - 19.11.2021 - We are not able to support the s3 based download anymore. So the download libs command does not work. We are making them available via this release - https://github.com/autosoft-dev/tree-hugger/releases/tag/0.10.1 Please download the required zip file from there. Please note that building the libraries has been tested under a macOS Mojave with Apple LLVM version 10.0.1 (clang-1001.0.46.4). However, they should work on all main stream Linux systems. We have not tested them on Windows. Environment variables You can set up TS LIB PATH environment vari","default_branch":null,"files":null,"tree":[],"storefront":"/r/autosoft-dev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/autosoft-dev/tree-hugger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}