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) {
// This is a test
System.out.println(args[0]);
/**
This is another test!
*/
}
"""
parser = FastParser("java")
print(parser.get_method_parameters(mthd))
Repo already exists, continuing.
['args', 'clazz']
inline_comments = parser.get_method_inline_comments(mthd)
for c in inline_comments:
print(c)
// This is a test
/**
This is another test!
*/
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 ability to get all instance variables in a class
- Add more languages
Metadata
Release files for fast-trees 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fast_trees-0.0.3.tar.gz | 9.5 kB | Without provenance | Details for fast_trees-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fast_trees-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for fast_trees-0.0.3-py3-none-any.whl |
Total release size: 17.9 kB
Release files / fast_trees-0.0.3.tar.gz
| Download URL | fast_trees-0.0.3.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e16f164263f5c91cdd315bfb51c73058de63e2cc72a55b6d35aee7f5f323977
|
|
BLAKE2b-256 checksum How to use checksums |
85a748c010b8e12a51bc2d4c327a839089addf4d751f986c7b0d16bd34fd9a62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12
|
Release files / fast_trees-0.0.3-py3-none-any.whl
| Download URL | fast_trees-0.0.3-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b63ff8146a425e88ee3863609909fa5c79fbf1f0a83bb4af5cc3a04c98e5c49
|
|
BLAKE2b-256 checksum How to use checksums |
05b181a2fe1a98eae27bf5f2b4f70e443287d4c99d09a1d7cda3c9cd10dadcee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12
|
Security for fast-trees 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.