githead


Namegithead JSON
Version 1.2.2 PyPI version JSON
download
home_pageNone
SummarySimple utility for getting the current git commit hash (HEAD)
upload_time2025-02-04 15:40:41
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords commit git git-commit hash head 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 (HEAD).

## Installation

```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.9",
    "maintainer_email": null,
    "keywords": "commit, git, git-commit, hash, head, vcs, version-control",
    "author": null,
    "author_email": "Kamil Monicz <kamil@monicz.dev>",
    "download_url": "https://files.pythonhosted.org/packages/3a/3b/5df3392d08f853027e0a3624756b87524f7afd253bf0bde14d0d316e1749/githead-1.2.2.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 (HEAD).\n\n## Installation\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",
    "bugtrack_url": null,
    "license": null,
    "summary": "Simple utility for getting the current git commit hash (HEAD)",
    "version": "1.2.2",
    "project_urls": {
        "Issues": "https://github.com/Zaczero/githead/issues",
        "Repository": "https://github.com/Zaczero/githead"
    },
    "split_keywords": [
        "commit",
        " git",
        " git-commit",
        " hash",
        " head",
        " vcs",
        " version-control"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "cbead56feecb053e3ccf19a7ee984cdd55116160a8215de912ead96ce1c0a0b2",
                "md5": "a836b07feaa5cfce7601efaf8ceb8f81",
                "sha256": "04f0fa2d92c6dd15cdae9e8154031dc23ac38077e4e19cc34397b9c3e36b5776"
            },
            "downloads": -1,
            "filename": "githead-1.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a836b07feaa5cfce7601efaf8ceb8f81",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 2798,
            "upload_time": "2025-02-04T15:40:40",
            "upload_time_iso_8601": "2025-02-04T15:40:40.071677Z",
            "url": "https://files.pythonhosted.org/packages/cb/ea/d56feecb053e3ccf19a7ee984cdd55116160a8215de912ead96ce1c0a0b2/githead-1.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3a3b5df3392d08f853027e0a3624756b87524f7afd253bf0bde14d0d316e1749",
                "md5": "28d28148a4656ede93c5aed602912ec6",
                "sha256": "dbf3a6d906c1abc7403200172fb588b1d2472b56e4ce123f279a0db65dac6006"
            },
            "downloads": -1,
            "filename": "githead-1.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "28d28148a4656ede93c5aed602912ec6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 12262,
            "upload_time": "2025-02-04T15:40:41",
            "upload_time_iso_8601": "2025-02-04T15:40:41.791474Z",
            "url": "https://files.pythonhosted.org/packages/3a/3b/5df3392d08f853027e0a3624756b87524f7afd253bf0bde14d0d316e1749/githead-1.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-04 15:40:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Zaczero",
    "github_project": "githead",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "githead"
}
        
Elapsed time: 0.58735s