Fully git command binding for Python.
Features:
🔥 support any git commands, git command with "-" can be replaced with "_" like git rev-parse to git.rev_parse().
🔥 support prompt input with git.prompt = "value".
🔥 auto change path to clone destination.
🔥 custom git binary location git.gitbin = "path/to/git/binary".
🔥 support direct output to stdout or capture output to function return.
🔥 raise exception on non-zero exit code.
🔥 compatible with mypy --strict.
Example
from gitbinding import Git
git = Git(path = None, direct_output = True)
"""
path:
working directory, None = use current directory.
direct_output:
if direct_output set to False, the output is redirect to command/function return.
"""
Now you can run any git command like git.init(), git.clone("gitrepo", "destination"), git.commit(), git.push(), git.config() etc.
author: Guangrei.
Metadata
Release files for gitbinding 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gitbinding-1.0.6.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gitbinding-1.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / gitbinding-1.0.6.tar.gz
| Download URL | gitbinding-1.0.6.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8cc46096618049a28517c65fa5dd07bcbe6d6effa8b0cc3f99a3681abf50e45e
|
|
BLAKE2b-256 checksum How to use checksums |
2d52237dab827a99d1695c915c281b3d145efcf1093c1001022be97454d25601
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Release files / gitbinding-1.0.6-py3-none-any.whl
| Download URL | gitbinding-1.0.6-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ae1325f3217e80e339a263a7dd84a4b3e30a491452b83c0fe59c40b8fbce70e
|
|
BLAKE2b-256 checksum How to use checksums |
4ac0fad414898841780072e0c3747210c6db8a9b5c797c5e5a6a4807268580bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Security for gitbinding 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.