githead


Namegithead JSON
Version 1.2.0 PyPI version JSON
download
home_pageNone
SummarySimple utility for getting the current git commit hash (HEAD)
upload_time2024-11-17 06:57:18
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/85/8d/b3508c37806f60afc9bc7b438f262789b57d38ed2d0c11a8503f44f7c576/githead-1.2.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 (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.0",
    "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": "68a0de6c61edc5c62795a5822c4fd8b4b6ddd53108aa22aca94d034734fb1aaa",
                "md5": "1ed0cef6b990bc97a4538cb7c4cde5b7",
                "sha256": "fd3b573bf35571793098d27d9fc3e584b6a300601c99c18c023be4930cc84401"
            },
            "downloads": -1,
            "filename": "githead-1.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1ed0cef6b990bc97a4538cb7c4cde5b7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 3285,
            "upload_time": "2024-11-17T06:57:17",
            "upload_time_iso_8601": "2024-11-17T06:57:17.393424Z",
            "url": "https://files.pythonhosted.org/packages/68/a0/de6c61edc5c62795a5822c4fd8b4b6ddd53108aa22aca94d034734fb1aaa/githead-1.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "858db3508c37806f60afc9bc7b438f262789b57d38ed2d0c11a8503f44f7c576",
                "md5": "3ad5367e11f0bd8bd2f44b1e14df7029",
                "sha256": "0e1ee3585ce57d02f60ed6ebbaa22282baae5c9e2149ad215666cb5994e58480"
            },
            "downloads": -1,
            "filename": "githead-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3ad5367e11f0bd8bd2f44b1e14df7029",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 4293,
            "upload_time": "2024-11-17T06:57:18",
            "upload_time_iso_8601": "2024-11-17T06:57:18.259384Z",
            "url": "https://files.pythonhosted.org/packages/85/8d/b3508c37806f60afc9bc7b438f262789b57d38ed2d0c11a8503f44f7c576/githead-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-17 06:57:18",
    "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.40199s