Cute little python module that sits atop the tree-sitter library to provide an easier to use and cleaner interface for interacting with source code.
Project description
Fast Trees
Cute little python module that sits atop the tree-sitter library to provide an easier to use and cleaner interface for interacting with source code
Install
pip install fast_trees
How to use
Easily work with source code data by using the high level API. Here's how you can grab the parameters of a java method:
mthd = """public static void main(String[] args, Object clazz) {
System.out.println(args[0]);
}
"""
parser = FastParser('java')
parser.get_params(mthd)
2
Supported Languages
- Java
TODO
- Add ability to grab method parameters
- Add separation between parsing methods vs classes
- Add ability to get all methods in a class
- Add more languages
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fast_trees-0.0.1.tar.gz
(9.3 kB
view hashes)
Built Distribution
Close
Hashes for fast_trees-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 854741ee9a455a7443f43b5cae6d279b1c70a0eeb86bbc7aeebf9e98369ef847 |
|
MD5 | 1a2b58558a444b87a67836b537d67d90 |
|
BLAKE2b-256 | e4c443a6f5c32a64587a16feec0210af51d2e18820d9a1962807cb4104f4cac1 |