File tree Expand file tree Collapse file tree 2 files changed +32
-6
lines changed
Expand file tree Collapse file tree 2 files changed +32
-6
lines changed Original file line number Diff line number Diff line change 11# PatchParser
22A python package to extract key features from a commit patch.
33
4- *** Please note this repository is still in the initial development phase.***
4+ Please note this repository is still in the initial development phase.
55
6- ## Features
6+ ## Installation
7+
8+ Use the package manager [ pip] ( https://pip.pypa.io/en/stable/ ) to install foobar.
9+
10+ ``` bash
11+ pip install patchparser
12+ ```
13+
14+ ## Usage
15+
16+ ``` python
17+ from patchparser import github_parser
18+
19+ # Parse a given commit for a GitHub repository
20+ parsed = github_parser.commit(repo_owner = " Lightning-AI" ,
21+ repo_name = " lightning" ,
22+ sha = " 62f1e82e032eb16565e676d39e0db0cac7e34ace" )
23+ ```
24+
25+ ### Parsed Features
726
827| Columns | Type| Description |
928| --------------------| ----| -------------------------------------------------------------------------------------------|
@@ -36,4 +55,12 @@ A python package to extract key features from a commit patch.
3655| status | str | GitHub status tag at file level (e.g., modified) |
3756| total_additions | int | Total lines added for a file |
3857| total_deletions | int | Total lines deleted for a file |
39- |total_changes |int |Total lines changed for a file (total_additions + total_deletions)
58+ |total_changes |int |Total lines changed for a file (total_additions + total_deletions)
59+
60+ ## Contributing
61+ Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
62+
63+ Please make sure to update tests as appropriate.
64+
65+ ## License
66+ [ Unlicense] ( https://choosealicense.com/licenses/unlicense/ )
Original file line number Diff line number Diff line change @@ -6,17 +6,16 @@ build-backend = "setuptools.build_meta"
66
77[project ]
88name = " patchparser"
9- version = " 0.0.1 "
9+ version = " 0.0.2 "
1010authors = [
1111 {
name =
" Trevor Dunlap" ,
email =
" [email protected] " },
1212]
1313description = " A python package to extract key features from a commit patch."
1414readme = " README.md"
15- license = { file =" LICENSE" }
1615requires-python = " >=3.7"
1716classifiers = [
1817 " Programming Language :: Python :: 3" ,
19- " License :: OSI Approved :: MIT License " ,
18+ " License :: OSI Approved :: Unlicense " ,
2019 " Operating System :: OS Independent" ,
2120]
2221
You can’t perform that action at this time.
0 commit comments