Name | githead JSON |
Version |
1.0.0
JSON |
| download |
home_page | None |
Summary | Simple utility for getting the current git commit hash |
upload_time | 2024-09-23 21:06:29 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
commit
git
hash
vcs
version-control
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# githead
[![PyPI - Python Version](https://shields.monicz.dev/pypi/pyversions/githead)](https://pypi.org/project/githead)
[![Liberapay Patrons](https://shields.monicz.dev/liberapay/patrons/Zaczero?logo=liberapay&label=Patrons)](https://liberapay.com/Zaczero/)
[![GitHub Sponsors](https://shields.monicz.dev/github/sponsors/Zaczero?logo=github&label=Sponsors&color=%23db61a2)](https://github.com/sponsors/Zaczero)
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.
```sh
pip install githead
```
## Basic usage
```py
from githead import githead
githead() # -> 'bca663418428d603eea8243d08a5ded19eb19a34'
# defaults to '.git' directory but can be changed:
githead('path/to/.git')
```
Raw data
{
"_id": null,
"home_page": null,
"name": "githead",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "commit, git, hash, vcs, version-control",
"author": null,
"author_email": "Kamil Monicz <kamil@monicz.dev>",
"download_url": "https://files.pythonhosted.org/packages/a4/cf/cc5a3dba6fee4b5c2262b81b041b54c41a0cf7592473d294889b88ff7a14/githead-1.0.0.tar.gz",
"platform": null,
"description": "# githead\n\n[![PyPI - Python Version](https://shields.monicz.dev/pypi/pyversions/githead)](https://pypi.org/project/githead)\n[![Liberapay Patrons](https://shields.monicz.dev/liberapay/patrons/Zaczero?logo=liberapay&label=Patrons)](https://liberapay.com/Zaczero/)\n[![GitHub Sponsors](https://shields.monicz.dev/github/sponsors/Zaczero?logo=github&label=Sponsors&color=%23db61a2)](https://github.com/sponsors/Zaczero)\n\nSimple utility for getting the current git commit hash.\n\n## Installation\n\nThe 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.\n\n```sh\npip install githead\n```\n\n## Basic usage\n\n```py\nfrom githead import githead\n\ngithead() # -> 'bca663418428d603eea8243d08a5ded19eb19a34'\n\n# defaults to '.git' directory but can be changed:\ngithead('path/to/.git')\n```\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Simple utility for getting the current git commit hash",
"version": "1.0.0",
"project_urls": {
"Issues": "https://github.com/Zaczero/githead/issues",
"Repository": "https://github.com/Zaczero/githead"
},
"split_keywords": [
"commit",
" git",
" hash",
" vcs",
" version-control"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "503fcf71025decda78a3ee70048f015400b7606d6a5672289fd2e42ab9442722",
"md5": "eba4ee765adad44982dad57f542c7de3",
"sha256": "d9e6826c3cbdaec899bb8bf1ba7369cc01622e20744f49c5bc66bc10795f9c69"
},
"downloads": -1,
"filename": "githead-1.0.0-cp38-abi3-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "eba4ee765adad44982dad57f542c7de3",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 204704,
"upload_time": "2024-09-23T21:06:19",
"upload_time_iso_8601": "2024-09-23T21:06:19.207070Z",
"url": "https://files.pythonhosted.org/packages/50/3f/cf71025decda78a3ee70048f015400b7606d6a5672289fd2e42ab9442722/githead-1.0.0-cp38-abi3-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e3ce00cce15c003774d9cd1851aa7cce15eb97a93b92bc19bae015bca75eb3cb",
"md5": "6a2ba411c0dd3f1983a693798ca1b124",
"sha256": "68b95e181d3476fb22e6da539731a040a4813f104bc6d1f3a773fa53132ca2b2"
},
"downloads": -1,
"filename": "githead-1.0.0-cp38-abi3-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "6a2ba411c0dd3f1983a693798ca1b124",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 199716,
"upload_time": "2024-09-23T21:06:21",
"upload_time_iso_8601": "2024-09-23T21:06:21.073206Z",
"url": "https://files.pythonhosted.org/packages/e3/ce/00cce15c003774d9cd1851aa7cce15eb97a93b92bc19bae015bca75eb3cb/githead-1.0.0-cp38-abi3-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "11c0ccf19778edd1cf77f181542a3cac10173440e6e5ded0c67d6bb22b2f3411",
"md5": "7b41dfd3a15d1bdc6e58da5b70e4d769",
"sha256": "2062e0f0b4de2f80e1c4667d8ee14aef8d98c823a0b6881b9f39bc655e7d4a73"
},
"downloads": -1,
"filename": "githead-1.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"has_sig": false,
"md5_digest": "7b41dfd3a15d1bdc6e58da5b70e4d769",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 206858,
"upload_time": "2024-09-23T21:06:22",
"upload_time_iso_8601": "2024-09-23T21:06:22.695399Z",
"url": "https://files.pythonhosted.org/packages/11/c0/ccf19778edd1cf77f181542a3cac10173440e6e5ded0c67d6bb22b2f3411/githead-1.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "66ed0c1b1f590264394f5db0cbb000c60b5e33b258b165678592f78d611d19c9",
"md5": "2c2d3e83b82a8e2ee43b9daad1dbe7d5",
"sha256": "cb49907d0e5b2ffdb1723e14bd69c531bffa3e6c0d3421c73b3a811807554a53"
},
"downloads": -1,
"filename": "githead-1.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "2c2d3e83b82a8e2ee43b9daad1dbe7d5",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 215623,
"upload_time": "2024-09-23T21:06:23",
"upload_time_iso_8601": "2024-09-23T21:06:23.781474Z",
"url": "https://files.pythonhosted.org/packages/66/ed/0c1b1f590264394f5db0cbb000c60b5e33b258b165678592f78d611d19c9/githead-1.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "66373523971aa04b9df748fc35003463e4b509e31d9cf40989e2ed5db11f5996",
"md5": "bfc42dff67d7887a16528cdbdbe57262",
"sha256": "23409ada992f850a81363316bc8ab74f2b1435a4784512ac7b71abf39dae0fbb"
},
"downloads": -1,
"filename": "githead-1.0.0-cp38-abi3-musllinux_1_2_aarch64.whl",
"has_sig": false,
"md5_digest": "bfc42dff67d7887a16528cdbdbe57262",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 412973,
"upload_time": "2024-09-23T21:06:24",
"upload_time_iso_8601": "2024-09-23T21:06:24.828958Z",
"url": "https://files.pythonhosted.org/packages/66/37/3523971aa04b9df748fc35003463e4b509e31d9cf40989e2ed5db11f5996/githead-1.0.0-cp38-abi3-musllinux_1_2_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "331a628c9dff67d11c0ba48beb2a04c698008a8afde695e85ac6424ca989ba35",
"md5": "713ff745419e7f6b250a32db81548e6e",
"sha256": "8b71282277e2de72b55b49959140504112a98cad332b23a9dd537916fd6d467b"
},
"downloads": -1,
"filename": "githead-1.0.0-cp38-abi3-musllinux_1_2_x86_64.whl",
"has_sig": false,
"md5_digest": "713ff745419e7f6b250a32db81548e6e",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 397156,
"upload_time": "2024-09-23T21:06:26",
"upload_time_iso_8601": "2024-09-23T21:06:26.288160Z",
"url": "https://files.pythonhosted.org/packages/33/1a/628c9dff67d11c0ba48beb2a04c698008a8afde695e85ac6424ca989ba35/githead-1.0.0-cp38-abi3-musllinux_1_2_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0d6ffc794573c082708bceb883b5ad879197e81d20e6b49c417896836b745185",
"md5": "b38ea8b513b6a410c17310a45a221121",
"sha256": "0313bb27e3884a3fcc3cf6f0714b316a753999d271101d650b3c5dd9236b7acb"
},
"downloads": -1,
"filename": "githead-1.0.0-cp38-abi3-win_amd64.whl",
"has_sig": false,
"md5_digest": "b38ea8b513b6a410c17310a45a221121",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 111759,
"upload_time": "2024-09-23T21:06:28",
"upload_time_iso_8601": "2024-09-23T21:06:28.109508Z",
"url": "https://files.pythonhosted.org/packages/0d/6f/fc794573c082708bceb883b5ad879197e81d20e6b49c417896836b745185/githead-1.0.0-cp38-abi3-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a4cfcc5a3dba6fee4b5c2262b81b041b54c41a0cf7592473d294889b88ff7a14",
"md5": "4ffd4eae17d8a05c312658c74fd0489a",
"sha256": "e9ca6bbffa2eed8f05f3549b8f21be385b1b6036eef49afea8945c7728f4fe8c"
},
"downloads": -1,
"filename": "githead-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "4ffd4eae17d8a05c312658c74fd0489a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 12044,
"upload_time": "2024-09-23T21:06:29",
"upload_time_iso_8601": "2024-09-23T21:06:29.410601Z",
"url": "https://files.pythonhosted.org/packages/a4/cf/cc5a3dba6fee4b5c2262b81b041b54c41a0cf7592473d294889b88ff7a14/githead-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-23 21:06:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Zaczero",
"github_project": "githead",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "githead"
}