'git status' parser
Project description
Install
$ [sudo] pip install git-status
Classes
git_status.Status
git status
parser
@property | description |
---|---|
A |
return list of added files |
D |
return list of deleted files |
M |
return list of modified files |
R |
return list of renamed files |
untracked |
return list of untracked files |
Functions
function | description |
---|---|
git_status.get(path=None) |
return git status string |
Examples
>>> import git_status
>>> git_status.get(".")
M path/to/modified
A path/to/added
D path/to/deleted
R path/to/renamed
?? path/to/untracked
Status
class
>>> status = git_status.Status(".")
>>> status.A
['path/to/added']
>>> status.M
['path/to/modified']
>>> status.D
['path/to/deleted']
>>> status.R
['path/to/renamed']
>>> status.untracked
['path/to/untracked']
readme-md - README.md generator
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
git-status-2018.11.19.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for git_status-2018.11.19-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f125c6dae598ffdb33fef3af141fcdbfa6066fba07a516a6c8891ec476368b9a |
|
MD5 | 99ac2a0734d00ac8dc1f18a3c0f978ee |
|
BLAKE2b-256 | 327f5b6501fcb0eb6828c4150ee3299c82c0bb636c6676bb826b6a9a8ae95216 |