https://github.com/pykit3/k3git
wrapper of git command-line
https://github.com/pykit3/k3git
cli commandline git
Last synced: 4 months ago
JSON representation
wrapper of git command-line
- Host: GitHub
- URL: https://github.com/pykit3/k3git
- Owner: pykit3
- License: mit
- Created: 2020-06-09T13:32:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-12-24T17:23:26.000Z (5 months ago)
- Last Synced: 2025-12-26T07:55:18.192Z (5 months ago)
- Topics: cli, commandline, git
- Language: Python
- Homepage: https://blog.openacid.com
- Size: 154 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# k3git
[](https://github.com/pykit3/k3git/actions/workflows/python-package.yml)
[](https://k3git.readthedocs.io/en/stable/?badge=stable)
[](https://pypi.org/project/k3git)
wrapper of git command-line
k3git is a component of [pykit3] project: a python3 toolkit set.
k3git is wrapper of git command-line.
To parse a git command ``git --git-dir=/foo fetch origin``:
>>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).cmds
['fetch', 'origin']
>>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).to_args()
['--git-dir=/foo']
# Install
```
pip install k3git
```
# Synopsis
```python
>>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).cmds
['fetch', 'origin']
>>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).to_args()
['--git-dir=/foo']
```
# Author
Zhang Yanpo (张炎泼)
# Copyright and License
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼)
[pykit3]: https://github.com/pykit3