print a one-list summary of the current git repository, the current branch, and the hash for the current head
Project description
gitsummary
Pure python utility to print a one-line summary of the current git repository, the current branch, and the hash for the current head.
usage
import gitsummary
gitsummary.print_cwd_git_version()
returns a string containing the current git repository, the current branch, and the hash of the branch head. This information is useful in scientific codes to quickly determine the origin of a plot or dataset. The string can, for example, be written in a jupyter notebook or placed in the metadata of a netcdf file.
License
This project is licensed under the terms of the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gitsummary-0.0.2.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for gitsummary-0.0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adb97f2e5b05a006501abcad0a72ff79a93875d6d8573b963082532fadd37de0 |
|
MD5 | b77241cf2a68e611544caf51e3094eb3 |
|
BLAKE2b-256 | f16abe7b9246829d252e382565112a7b7b0f67fa65974f90983f7d48ee8b8b44 |