Detect the version of Chrome installed on Windows, Linux, Mac. Cross-platform using Python, native OS detection.
Project description
Chrome Version
Get the version of Chrome installed on Windows, Linux, Mac. Cross-platform using Python, native OS detection, does not require Selenium.
Installation
- To use it as a module:
pip install chrome-version
- To use it as a CLI:
pip install chrome-version[console]
Usage
Module:
>>> import chrome_version
>>> print(chrome_version.get_chrome_version())
>>> '103.0.5060.114'
CLI:
chrome-version
103.0.5060.114
Why?
At first,
I needed to get the Chrome version for a project I was working on, which was using Undetected Chromedriver. I found the gist below.
When I used it in a variaty of 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 it to learn more about:
- Using Poetry 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...
Motivation
- It might be useful for someone.
- It's easier to pip install a module than copy/paste a gist.
- Educational Purposes: 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.
Disclaimer
This module based on Detect the version of Chrome installed on Windows, Linux, Mac. Cross-platform using Python, native OS detection, does not require Selenium. gist. I'm not the author of the gist, I just made it into a module and coded a CLI wrapping it. All credits to the author of the gist.
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
Built Distribution
File details
Details for the file chrome_version-0.3.0.tar.gz
.
File metadata
- Download URL: chrome_version-0.3.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38017af5b7cdc9ae9e6f601db8d8c76f05dcf60aa9c37adc8159cbba7c156c9e |
|
MD5 | 1a4ddf84b0ec8f690b34abf7a3000894 |
|
BLAKE2b-256 | 12e93669d2bdaeca51750131b6e9ded58a94f1a55f933c42f3dcb2e5f9429400 |
File details
Details for the file chrome_version-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: chrome_version-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8909da2bb741060fb92f92dcb0288d9c41bf996d0d9f83cac2d99bddcf8189b |
|
MD5 | ba5ff71e59af9a433e0cc140b9d159c4 |
|
BLAKE2b-256 | 10cbf8cd0f93076ee558bed182b840db41e56ea717fadd41ac81cce807fd051c |