An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# k3git

[![Action-CI](https://github.com/pykit3/k3git/actions/workflows/python-package.yml/badge.svg)](https://github.com/pykit3/k3git/actions/workflows/python-package.yml)
[![Documentation Status](https://readthedocs.org/projects/k3git/badge/?version=stable)](https://k3git.readthedocs.io/en/stable/?badge=stable)
[![Package](https://img.shields.io/pypi/pyversions/k3git)](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