Skip to main content

Simple utility for getting the current git commit hash

Project description

githead

PyPI - Python Version Liberapay Patrons GitHub Sponsors

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

githead-1.0.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

githead-1.0.0-cp38-abi3-win_amd64.whl (111.8 kB view details)

Uploaded CPython 3.8+Windows x86-64

githead-1.0.0-cp38-abi3-musllinux_1_2_x86_64.whl (397.2 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ x86-64

githead-1.0.0-cp38-abi3-musllinux_1_2_aarch64.whl (413.0 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

githead-1.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (215.6 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

githead-1.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (206.9 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

githead-1.0.0-cp38-abi3-macosx_11_0_arm64.whl (199.7 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

githead-1.0.0-cp38-abi3-macosx_10_12_x86_64.whl (204.7 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file githead-1.0.0.tar.gz.

File metadata

  • Download URL: githead-1.0.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.6

File hashes

Hashes for githead-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e9ca6bbffa2eed8f05f3549b8f21be385b1b6036eef49afea8945c7728f4fe8c
MD5 4ffd4eae17d8a05c312658c74fd0489a
BLAKE2b-256 a4cfcc5a3dba6fee4b5c2262b81b041b54c41a0cf7592473d294889b88ff7a14

See more details on using hashes here.

File details

Details for the file githead-1.0.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: githead-1.0.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 111.8 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for githead-1.0.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0313bb27e3884a3fcc3cf6f0714b316a753999d271101d650b3c5dd9236b7acb
MD5 b38ea8b513b6a410c17310a45a221121
BLAKE2b-256 0d6ffc794573c082708bceb883b5ad879197e81d20e6b49c417896836b745185

See more details on using hashes here.

File details

Details for the file githead-1.0.0-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for githead-1.0.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8b71282277e2de72b55b49959140504112a98cad332b23a9dd537916fd6d467b
MD5 713ff745419e7f6b250a32db81548e6e
BLAKE2b-256 331a628c9dff67d11c0ba48beb2a04c698008a8afde695e85ac6424ca989ba35

See more details on using hashes here.

File details

Details for the file githead-1.0.0-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for githead-1.0.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 23409ada992f850a81363316bc8ab74f2b1435a4784512ac7b71abf39dae0fbb
MD5 bfc42dff67d7887a16528cdbdbe57262
BLAKE2b-256 66373523971aa04b9df748fc35003463e4b509e31d9cf40989e2ed5db11f5996

See more details on using hashes here.

File details

Details for the file githead-1.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for githead-1.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cb49907d0e5b2ffdb1723e14bd69c531bffa3e6c0d3421c73b3a811807554a53
MD5 2c2d3e83b82a8e2ee43b9daad1dbe7d5
BLAKE2b-256 66ed0c1b1f590264394f5db0cbb000c60b5e33b258b165678592f78d611d19c9

See more details on using hashes here.

File details

Details for the file githead-1.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for githead-1.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2062e0f0b4de2f80e1c4667d8ee14aef8d98c823a0b6881b9f39bc655e7d4a73
MD5 7b41dfd3a15d1bdc6e58da5b70e4d769
BLAKE2b-256 11c0ccf19778edd1cf77f181542a3cac10173440e6e5ded0c67d6bb22b2f3411

See more details on using hashes here.

File details

Details for the file githead-1.0.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for githead-1.0.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68b95e181d3476fb22e6da539731a040a4813f104bc6d1f3a773fa53132ca2b2
MD5 6a2ba411c0dd3f1983a693798ca1b124
BLAKE2b-256 e3ce00cce15c003774d9cd1851aa7cce15eb97a93b92bc19bae015bca75eb3cb

See more details on using hashes here.

File details

Details for the file githead-1.0.0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for githead-1.0.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d9e6826c3cbdaec899bb8bf1ba7369cc01622e20744f49c5bc66bc10795f9c69
MD5 eba4ee765adad44982dad57f542c7de3
BLAKE2b-256 503fcf71025decda78a3ee70048f015400b7606d6a5672289fd2e42ab9442722

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page