fastgit-0.0.4


توضیحات

Use git from python, fast
ویژگی مقدار
سیستم عامل -
نام فایل fastgit-0.0.4
نام fastgit
نسخه کتابخانه 0.0.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Jeremy Howard <github@jhoward.fastmail.fm>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/fastgit/
مجوز Apache-2.0
# fastgit <!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! --> ## Usage ### Installation Install latest from [pypi](https://pypi.org/project/fastgit/) ``` sh $ pip install fastgit ``` ### How to use In this example we run `git init` on a directory, add a *.gitignore*, and commit it. ``` python import shutil, tempfile ``` ``` python def _git_init(g): if g.exists: return # Return early if git already initialised g.init(b='main') g.config('user.name', 'fastgit') g.config('user.email', 'fastgit@example.com') (g.d/".gitignore").mk_write("*.bak") g.add(".gitignore") g.commit(m="add .gitignore") ``` ``` python td = tempfile.mkdtemp() g = Git(td) _git_init(g) assert 'add .gitignore' in g.last_commit print(g.branch('--show-current')) ``` main You can also pass path arguments after `--` using the `__` parameter: ``` python g.log('--oneline', __=['.gitignore']) ``` '22a9a5d add .gitignore' ``` python shutil.rmtree(td) ```


زبان مورد نیاز

مقدار نام
>=3.9 Python


نحوه نصب


نصب پکیج whl fastgit-0.0.4:

    pip install fastgit-0.0.4.whl


نصب پکیج tar.gz fastgit-0.0.4:

    pip install fastgit-0.0.4.tar.gz