Skip to main content

Simple utility for getting the current git commit hash (HEAD)

Project description

githead

PyPI - Python Version Liberapay Patrons GitHub Sponsors

Simple utility for getting the current git commit hash (HEAD).

Installation

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.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

githead-1.2.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: githead-1.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.2

File hashes

Hashes for githead-1.2.0.tar.gz
Algorithm Hash digest
SHA256 0e1ee3585ce57d02f60ed6ebbaa22282baae5c9e2149ad215666cb5994e58480
MD5 3ad5367e11f0bd8bd2f44b1e14df7029
BLAKE2b-256 858db3508c37806f60afc9bc7b438f262789b57d38ed2d0c11a8503f44f7c576

See more details on using hashes here.

File details

Details for the file githead-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: githead-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.2

File hashes

Hashes for githead-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd3b573bf35571793098d27d9fc3e584b6a300601c99c18c023be4930cc84401
MD5 1ed0cef6b990bc97a4538cb7c4cde5b7
BLAKE2b-256 68a0de6c61edc5c62795a5822c4fd8b4b6ddd53108aa22aca94d034734fb1aaa

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