Simple utility for getting the current git commit hash (HEAD)
Project description
githead
Simple utility for getting the current git commit hash.
Installation
The recommended installation method is through the PyPI package manager. The project is implemented in Rust and several pre-built binary wheels are available for Linux, macOS, and Windows, with support for both x64 and ARM architectures.
pip install githead
Basic usage
from githead import githead
githead() # -> 'bca663418428d603eea8243d08a5ded19eb19a34'
# defaults to '.git' directory but can be changed:
githead('path/to/.git')
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file githead-1.1.0.tar.gz.
File metadata
- Download URL: githead-1.1.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f10c63ca22919eb9d50042afc65a08e0da05e4975e5ff650a357276c3a8a9cc5
|
|
| MD5 |
19b7105b2d3cc06b73cf49d12775fc46
|
|
| BLAKE2b-256 |
afd2182954261abd0446ebaf3f9f1a9f1d63fc5752e2de8937c31680074e4d2c
|
File details
Details for the file githead-1.1.0-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: githead-1.1.0-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 111.8 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
853dcd438226ba9a9bd3fe19c688a38d5683f77f459d570d62bac8831d0734d5
|
|
| MD5 |
d370380c99650501511b9d2edc963466
|
|
| BLAKE2b-256 |
456fd39034319c32b3573733f9eeb3974585a7648fea5b843d258f97c048963d
|
File details
Details for the file githead-1.1.0-cp39-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: githead-1.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 397.8 kB
- Tags: CPython 3.9+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f87613a2786acfc3028ca8adf49273940f38582adece8db33f4741ef8cc510c2
|
|
| MD5 |
2144586be8560d54f02ca2f403a7b4a3
|
|
| BLAKE2b-256 |
7ea9bcfd1cb8d3196b10e5c27243473e4e9cb0c518702fab0ba34063ceb3a9b4
|
File details
Details for the file githead-1.1.0-cp39-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: githead-1.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 413.6 kB
- Tags: CPython 3.9+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16bc1778634564487071df919c279b3f21b21c7521b88cf7c93fa315930fda97
|
|
| MD5 |
60ecbcbe96e44db806ded6596c5d99da
|
|
| BLAKE2b-256 |
e7a397267194521a333b009339561115b73a72e3b82b9248d5266e0a39c77a40
|
File details
Details for the file githead-1.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: githead-1.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 216.0 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ac22b3ab19e6478320da7ff11b7d7261d51856beef889989f33a69ce857f86c
|
|
| MD5 |
a74e79b15dc9a3492020dc1e6b783b0b
|
|
| BLAKE2b-256 |
68063195fd167dddf0cefe912fbfa23d26e806283669dbea19f0479430cb4475
|
File details
Details for the file githead-1.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: githead-1.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 207.2 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a0f1fd9c919acbc54c2a7afa04e58db72eba1f33d1fd880228433bc09d7a3f5
|
|
| MD5 |
b02675e421abcdada72f12a11f145795
|
|
| BLAKE2b-256 |
87ef443adeb9a49f028d8ff4b3e06a938415271b0800f6cfaa832980e6b29f07
|
File details
Details for the file githead-1.1.0-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: githead-1.1.0-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 200.2 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
397dafcc3bf38eb8e17f0ef6da2a7167d90ab541bdc36a87e3af739fd4a230c5
|
|
| MD5 |
ea238790478d099a97f71fa2f78f08ac
|
|
| BLAKE2b-256 |
01f53bd4954c786eb59cb9fab7c47a970d340a16ce320067cd2c566390fa7ef4
|
File details
Details for the file githead-1.1.0-cp39-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: githead-1.1.0-cp39-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 204.9 kB
- Tags: CPython 3.9+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1bf6d0f0a995d1a998b0a9cfb1bd228adc3ea763e38cc82844e5e63557999de
|
|
| MD5 |
e606641b9c18fc2161320ba308738faf
|
|
| BLAKE2b-256 |
f073f20ee30ddfc5f4b890a9c55f9f8bf524e023717407b081a757d946e420f1
|