Intuitive Git for Python
Install
Dependencies: git ^2.0.0 (tested)
pip install gitspy
Development
poetry install
Example Usage
Get branch
Capture will store stdout, which can then be consumed by calling git.stdout()
Default is to return returncode and print stdout and stderr to console
>>> import gitspy
>>> git = gitspy.Git()
>>> git.init(capture=True) # ['...']
0
Consume stdout (a list containing a str)
>>> len(git.stdout()) # []
1
No commands have been called yet since last call to stdout so stdout is empty
>>> len(git.stdout()) # []
0
Stdout can be accrued
>>> git.init(capture=True) # ['...']
0
>>> git.init(capture=True) # ['...', '...']
0
>>> len(git.stdout()) # []
2
Stdout is consumed
>>> len(git.stdout()) # []
0
Get commit hash
>>> git.rev_parse("HEAD", capture=True) # ['...']
0
>>> len(git.stdout()[0]) # []
40
Metadata
Release files for gitspy 0.3.0
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 | Actions |
|---|---|---|---|---|
| gitspy-0.3.0.tar.gz | 4.9 kB | Without provenance | Details for gitspy-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gitspy-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for gitspy-0.3.0-py3-none-any.whl |
Total release size: 9.4 kB
Release files / gitspy-0.3.0.tar.gz
| Download URL | gitspy-0.3.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74e582d2f13001f61133e02c5ceb252a1511d3859cfdff16637e50ba0f3091bd
|
|
BLAKE2b-256 checksum How to use checksums |
910145bd2bee216bdc7bd78c986a34e974b738f27933fa825b0de3feb38ded0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.8.13 Darwin/22.2.0
|
Release files / gitspy-0.3.0-py3-none-any.whl
| Download URL | gitspy-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ca2e79c39d95d1a374d35bd3f31741fec168884fb58243adda65ea4bdfbe13d
|
|
BLAKE2b-256 checksum How to use checksums |
81ff7dea711a903e27e2b99f3d1e0dcb1f41604b275167e781ac15854381642c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.8.13 Darwin/22.2.0
|
Security for gitspy 0.3.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.