Skip to content

Commit b396d92

Browse files
committed
Updated documentation and license
1 parent 8588d50 commit b396d92

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

README.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
11
# PatchParser
22
A 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/)

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "patchparser"
9-
version = "0.0.1"
9+
version = "0.0.2"
1010
authors = [
1111
{ name="Trevor Dunlap", email="[email protected]" },
1212
]
1313
description = "A python package to extract key features from a commit patch."
1414
readme = "README.md"
15-
license = { file="LICENSE" }
1615
requires-python = ">=3.7"
1716
classifiers = [
1817
"Programming Language :: Python :: 3",
19-
"License :: OSI Approved :: MIT License",
18+
"License :: OSI Approved :: Unlicense",
2019
"Operating System :: OS Independent",
2120
]
2221

0 commit comments

Comments
 (0)