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 hashes)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.8+ Windows x86-64

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

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 hashes)

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 hashes)

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 hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.8+ macOS 11.0+ ARM64

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

Uploaded CPython 3.8+ macOS 10.12+ x86-64

Supported by

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