tree-sitter-graph
Construct graphs from parsed source code
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.7%) to scientific vocabulary
Repository
Construct graphs from parsed source code
Basic Info
- Host: GitHub
- Owner: tree-sitter
- License: apache-2.0
- Language: Rust
- Default Branch: main
- Homepage: https://docs.rs/tree-sitter-graph/*/tree_sitter_graph/
- Size: 611 KB
Statistics
- Stars: 279
- Watchers: 14
- Forks: 22
- Open Issues: 25
- Releases: 16
Metadata Files
README.md
tree-sitter-graph
The tree-sitter-graph library defines a DSL for constructing arbitrary graph
structures from source code that has been parsed using tree-sitter.
Usage
This package can be used either as a library or command-line program.
To use it as a library, add the following to your Cargo.toml:
toml
[dependencies]
tree-sitter-graph = "0.12"
To use it as a program, install it via cargo install:
$ cargo install --features cli tree-sitter-graph
$ tree-sitter-graph --help
Development
The project is written in Rust, and requires a recent version installed. Rust can be installed and updated using rustup.
Build the project by running:
$ cargo build
Run the tests by running:
$ cargo test
The project consists of a library and a CLI.
By default, running cargo only applies to the library.
To run cargo commands on the CLI as well, add --features cli or --all-features.
Sources are formatted using the standard Rust formatted, which is applied by running:
$ cargo fmt
Owner
- Name: tree-sitter
- Login: tree-sitter
- Kind: organization
- Website: https://tree-sitter.github.io/tree-sitter/
- Repositories: 56
- Profile: https://github.com/tree-sitter
Citation (CITATION.cff)
cff-version: 1.2.0
message: "Please cite tree-sitter-graph as below"
authors:
- family-names: "van Antwerpen"
given-names: "Hendrik"
orcid: https://orcid.org/0000-0001-5117-0921
- family-names: "Rix"
given-names: "Rob"
- family-names: "Creager"
given-names: "Douglas A."
orcid: https://orcid.org/0000-0003-1100-4894
title: "tree-sitter-graph"
doi: 10.5281/zenodo.7221982
GitHub Events
Total
- Create event: 2
- Release event: 1
- Issues event: 2
- Watch event: 53
- Delete event: 1
- Issue comment event: 2
- Push event: 2
- Pull request event: 3
- Pull request review event: 2
- Fork event: 3
Last Year
- Create event: 2
- Release event: 1
- Issues event: 2
- Watch event: 53
- Delete event: 1
- Issue comment event: 2
- Push event: 2
- Pull request event: 3
- Pull request review event: 2
- Fork event: 3
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Hendrik van Antwerpen | h****n@g****m | 232 |
| Rob Rix | r****x@m****m | 117 |
| Douglas Creager | d****r@d****t | 37 |
| Taus | t****n@g****m | 9 |
| Rick Winfrey | r****y@g****m | 2 |
| Rebecca Valentine | b****a@g****m | 2 |
| Bastiaan Marinus van de Weerd | b****n@b****u | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 56
- Total pull requests: 73
- Average time to close issues: 4 months
- Average time to close pull requests: 7 days
- Total issue authors: 16
- Total pull request authors: 7
- Average comments per issue: 0.73
- Average comments per pull request: 0.41
- Merged pull requests: 69
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 3
- Pull requests: 3
- Average time to close issues: 8 days
- Average time to close pull requests: about 1 month
- Issue authors: 2
- Pull request authors: 3
- Average comments per issue: 1.33
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- robrix (30)
- hendrikvanantwerpen (7)
- nohehf (2)
- jorendorff (2)
- cyw3 (2)
- NinoScript (2)
- JoranHonig (1)
- rupurt (1)
- InTheCloudDan (1)
- ghost (1)
- Malibushko (1)
- code2graph (1)
- ProgHaj (1)
- gystar (1)
- quentinchambers (1)
Pull Request Authors
- hendrikvanantwerpen (65)
- bm-w (4)
- robrix (4)
- dcreager (3)
- nzinfo (2)
- jcarlson23 (2)
- BekaValentine (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cargo 436,718 total
- Total dependent packages: 2
- Total dependent repositories: 1
- Total versions: 25
- Total maintainers: 2
crates.io: tree-sitter-graph
Construct graphs from parsed source code
- Homepage: https://github.com/tree-sitter/tree-sitter-graph/
- Documentation: https://docs.rs/tree-sitter-graph/
- License: MIT OR Apache-2.0
-
Latest release: 0.12.0
published about 1 year ago
Rankings
Maintainers (2)
Dependencies
- env_logger 0.9 development
- indoc 1.0 development
- tree-sitter-python 0.19.1 development
- anyhow 1.0
- clap 3.2
- env_logger 0.9
- log 0.4
- regex 1
- serde 1.0
- serde_json 1.0
- smallvec 1.6
- string-interner 0.12
- thiserror 1.0
- tree-sitter 0.20
- tree-sitter-config 0.19
- tree-sitter-loader 0.19
- actions/cache v2 composite
- actions/checkout v2 composite
- hecrj/setup-rust-action v1 composite
- actions/checkout v2 composite
- hecrj/setup-rust-action v1 composite
- katyo/publish-crates v1 composite
- ncipollo/release-action v1 composite