chrome-version


Namechrome-version JSON
Version 0.4.0 PyPI version JSON
download
home_pageNone
SummaryDetect the version of Chrome installed on Windows, Linux, Mac. Cross-platform using Python, native OS detection.
upload_time2025-08-09 19:30:07
maintainerNone
docs_urlNone
authorNone
requires_python<4.0,>=3.0
licenseMIT
keywords chrome google google chrome version version
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Chrome Version

[![Coverage](https://img.shields.io/codecov/c/github/hasansezertasan/chrome-version)](https://codecov.io/gh/hasansezertasan/chrome-version)
[![PyPI - Version](https://img.shields.io/pypi/v/chrome-version.svg)](https://pypi.org/project/chrome-version)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/chrome-version.svg)](https://pypi.org/project/chrome-version)
[![License](https://img.shields.io/github/license/hasansezertasan/chrome-version.svg)](https://github.com/hasansezertasan/chrome-version/blob/main/LICENSE)
[![Latest Commit](https://img.shields.io/github/last-commit/hasansezertasan/chrome-version)](https://github.com/hasansezertasan/chrome-version)

[![Downloads](https://pepy.tech/badge/chrome-version)](https://pepy.tech/project/chrome-version)
[![Downloads/Month](https://pepy.tech/badge/chrome-version/month)](https://pepy.tech/project/chrome-version)
[![Downloads/Week](https://pepy.tech/badge/chrome-version/week)](https://pepy.tech/project/chrome-version)

Get the version of Chrome installed on Windows, Linux, Mac. Cross-platform using Python, native OS detection, does not require Selenium.

---

## Table of Contents

- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Usage](#usage)
- [Motivation](#motivation)
- [Features](#features)
- [Author](#author)
- [Disclaimer](#disclaimer)
- [License](#license)

## Installation

``` bash
uv add chrome-version
```

## Usage

Module:

```python
import chrome_version
print(chrome_version.get_chrome_version())
# '103.0.5060.114'
```

CLI:

```bash
chrome-version
103.0.5060.114
```

## Motivation

TL;DR I don't want to copy and paste it again...

At first,

I needed to get the Chrome version for a project I was working on, which was using [Undetected Chromedriver][undetected-chromedriver]. I found [this gist][chrome-version-gist].

After using it in several projects, I decided to turn it into a module so I'll be free of copy/paste. It only have one functionality: getting the chrome version.

Then,

I decided to use this package to learn more about:

- Using [Poetry](https://python-poetry.org/) for packaging and dependency management.
- Using scripts for CLI.
- Versioning.
- License management.
- Documentation.
- Publishing a module on PyPI.
- Using GitHub Actions to automate the publishing process.
- ...

Finally,

Now it's kind of a playground for me to learn more...

One other thing is that it's educational: A simple module is a good practice for me to learn how to build modules and publish them on PyPI and show others how easy it is.

## Features

- Cross-platform
- No external dependencies
- CLI
- Module

<!-- xc-heading -->
## Development

Clone the repository and cd into the project directory:

```sh
git clone https://github.com/hasansezertasan/hwid
cd hwid
```

The commands below can also be executed using the [xc task runner](https://xcfile.dev/), which combines the usage instructions with the actual commands. Simply run `xc`, it will popup an interactive menu with all available tasks.

### `pre-commit`

Run the pre-commit hooks:

```sh
uvx pre-commit run --all-files --hook-stage manual --show-diff-on-failure
```

### `checks`

Run all checks to ensure code quality:

```sh
uvx "validate-pyproject[all]" pyproject.toml
uvx typos
uvx vulture src
uvx ruff check
uvx taplo lint pyproject.toml
uvx ruff format
uvx taplo format pyproject.toml
uvx mypy src
uvx mypy --install-types --non-interactive src/chrome_version
```

### `docs:serve`

Serve the documentation locally:

```sh
uvx --with-requirements requirements.docs.txt --reinstall mkdocs serve
```

### `docs:build`

Build the documentation locally:

```sh
uvx --with-requirements requirements.docs.txt --reinstall mkdocs build
```

## Author

- [Hasan Sezer Taşan](https://www.github.com/hasansezertasan), It's me :wave:
- [Kory Becker](https://github.com/primaryobjects), owner of the original script.

## Disclaimer

Based on [chrome-version-gist] by [Kory Becker](https://github.com/primaryobjects).

This package provides a CLI wrapper for the original project. All credit reserved to the author of the original code.

## License

`chrome-version` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.

<!-- Links -->
[undetected-chromedriver]: https://github.com/ultrafunkamsterdam/undetected-chromedriver
[chrome-version-gist]: https://gist.github.com/primaryobjects/d5346bf7a173dbded1a70375ff7461b4

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "chrome-version",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.0",
    "maintainer_email": "Hasan Sezer Ta\u015fan <hasansezertasan@gmail.com>",
    "keywords": "chrome, google, google chrome version, version",
    "author": null,
    "author_email": "Hasan Sezer Ta\u015fan <hasansezertasan@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/fb/ca/b5c27e24c98e5e055e7d241b47b73dd53f88012534ff048c9139cea6e591/chrome_version-0.4.0.tar.gz",
    "platform": null,
    "description": "# Chrome Version\n\n[![Coverage](https://img.shields.io/codecov/c/github/hasansezertasan/chrome-version)](https://codecov.io/gh/hasansezertasan/chrome-version)\n[![PyPI - Version](https://img.shields.io/pypi/v/chrome-version.svg)](https://pypi.org/project/chrome-version)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/chrome-version.svg)](https://pypi.org/project/chrome-version)\n[![License](https://img.shields.io/github/license/hasansezertasan/chrome-version.svg)](https://github.com/hasansezertasan/chrome-version/blob/main/LICENSE)\n[![Latest Commit](https://img.shields.io/github/last-commit/hasansezertasan/chrome-version)](https://github.com/hasansezertasan/chrome-version)\n\n[![Downloads](https://pepy.tech/badge/chrome-version)](https://pepy.tech/project/chrome-version)\n[![Downloads/Month](https://pepy.tech/badge/chrome-version/month)](https://pepy.tech/project/chrome-version)\n[![Downloads/Week](https://pepy.tech/badge/chrome-version/week)](https://pepy.tech/project/chrome-version)\n\nGet the version of Chrome installed on Windows, Linux, Mac. Cross-platform using Python, native OS detection, does not require Selenium.\n\n---\n\n## Table of Contents\n\n- [Table of Contents](#table-of-contents)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Motivation](#motivation)\n- [Features](#features)\n- [Author](#author)\n- [Disclaimer](#disclaimer)\n- [License](#license)\n\n## Installation\n\n``` bash\nuv add chrome-version\n```\n\n## Usage\n\nModule:\n\n```python\nimport chrome_version\nprint(chrome_version.get_chrome_version())\n# '103.0.5060.114'\n```\n\nCLI:\n\n```bash\nchrome-version\n103.0.5060.114\n```\n\n## Motivation\n\nTL;DR I don't want to copy and paste it again...\n\nAt first,\n\nI needed to get the Chrome version for a project I was working on, which was using [Undetected Chromedriver][undetected-chromedriver]. I found [this gist][chrome-version-gist].\n\nAfter using it in several projects, I decided to turn it into a module so I'll be free of copy/paste. It only have one functionality: getting the chrome version.\n\nThen,\n\nI decided to use this package to learn more about:\n\n- Using [Poetry](https://python-poetry.org/) for packaging and dependency management.\n- Using scripts for CLI.\n- Versioning.\n- License management.\n- Documentation.\n- Publishing a module on PyPI.\n- Using GitHub Actions to automate the publishing process.\n- ...\n\nFinally,\n\nNow it's kind of a playground for me to learn more...\n\nOne other thing is that it's educational: A simple module is a good practice for me to learn how to build modules and publish them on PyPI and show others how easy it is.\n\n## Features\n\n- Cross-platform\n- No external dependencies\n- CLI\n- Module\n\n<!-- xc-heading -->\n## Development\n\nClone the repository and cd into the project directory:\n\n```sh\ngit clone https://github.com/hasansezertasan/hwid\ncd hwid\n```\n\nThe commands below can also be executed using the [xc task runner](https://xcfile.dev/), which combines the usage instructions with the actual commands. Simply run `xc`, it will popup an interactive menu with all available tasks.\n\n### `pre-commit`\n\nRun the pre-commit hooks:\n\n```sh\nuvx pre-commit run --all-files --hook-stage manual --show-diff-on-failure\n```\n\n### `checks`\n\nRun all checks to ensure code quality:\n\n```sh\nuvx \"validate-pyproject[all]\" pyproject.toml\nuvx typos\nuvx vulture src\nuvx ruff check\nuvx taplo lint pyproject.toml\nuvx ruff format\nuvx taplo format pyproject.toml\nuvx mypy src\nuvx mypy --install-types --non-interactive src/chrome_version\n```\n\n### `docs:serve`\n\nServe the documentation locally:\n\n```sh\nuvx --with-requirements requirements.docs.txt --reinstall mkdocs serve\n```\n\n### `docs:build`\n\nBuild the documentation locally:\n\n```sh\nuvx --with-requirements requirements.docs.txt --reinstall mkdocs build\n```\n\n## Author\n\n- [Hasan Sezer Ta\u015fan](https://www.github.com/hasansezertasan), It's me :wave:\n- [Kory Becker](https://github.com/primaryobjects), owner of the original script.\n\n## Disclaimer\n\nBased on [chrome-version-gist] by [Kory Becker](https://github.com/primaryobjects).\n\nThis package provides a CLI wrapper for the original project. All credit reserved to the author of the original code.\n\n## License\n\n`chrome-version` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n\n<!-- Links -->\n[undetected-chromedriver]: https://github.com/ultrafunkamsterdam/undetected-chromedriver\n[chrome-version-gist]: https://gist.github.com/primaryobjects/d5346bf7a173dbded1a70375ff7461b4\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Detect the version of Chrome installed on Windows, Linux, Mac. Cross-platform using Python, native OS detection.",
    "version": "0.4.0",
    "project_urls": {
        "changelog": "https://github.com/hasansezertasan/chrome-version/blob/main/CHANGELOG.md",
        "documentation": "https://github.com/hasansezertasan/chrome-version#readme",
        "homepage": "https://github.com/hasansezertasan/chrome-version",
        "issues": "https://github.com/hasansezertasan/chrome-version/issues",
        "releasenotes": "https://github.com/hasansezertasan/chrome-version/releases",
        "source": "https://github.com/hasansezertasan/chrome-version.git"
    },
    "split_keywords": [
        "chrome",
        " google",
        " google chrome version",
        " version"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9705e7157a25fe18d195b0d194da076056bcd81f125dd23b1cac6b65e7286852",
                "md5": "53deebeaf4117fbd466ba59013451d55",
                "sha256": "3fdd6071e2412c420e18c8985a148a626a69fe96e4e523efcf4b8769a3ab0878"
            },
            "downloads": -1,
            "filename": "chrome_version-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "53deebeaf4117fbd466ba59013451d55",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.0",
            "size": 7568,
            "upload_time": "2025-08-09T19:30:06",
            "upload_time_iso_8601": "2025-08-09T19:30:06.849072Z",
            "url": "https://files.pythonhosted.org/packages/97/05/e7157a25fe18d195b0d194da076056bcd81f125dd23b1cac6b65e7286852/chrome_version-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "fbcab5c27e24c98e5e055e7d241b47b73dd53f88012534ff048c9139cea6e591",
                "md5": "839dd7aba36fc425ec8d7d58f3834b7c",
                "sha256": "885738d0fff7f085aa832838eb2f127001621cb987592c5a1ee9ec1729e9f4f1"
            },
            "downloads": -1,
            "filename": "chrome_version-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "839dd7aba36fc425ec8d7d58f3834b7c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.0",
            "size": 14172,
            "upload_time": "2025-08-09T19:30:07",
            "upload_time_iso_8601": "2025-08-09T19:30:07.756084Z",
            "url": "https://files.pythonhosted.org/packages/fb/ca/b5c27e24c98e5e055e7d241b47b73dd53f88012534ff048c9139cea6e591/chrome_version-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-09 19:30:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hasansezertasan",
    "github_project": "chrome-version",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "chrome-version"
}
        
Elapsed time: 3.37388s