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
pip install chrome-version
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
Based on chrome-version by Kory Becker.
This package provides a CLI wrapper for the original project. All credit reserved to the author of the original code.
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.1.tar.gz
.
File metadata
- Download URL: chrome_version-0.3.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cc852dae9a6373a6ba55e2af724ca0a092a4a762df505508be9992dcb8a3c6f |
|
MD5 | 8b9f9caf5414e61fee09e08eb747d290 |
|
BLAKE2b-256 | 7f95b0dad0a0bd7d4bc9ab9f2c4ec736141e7d515b3c52226330c5afaed541be |
File details
Details for the file chrome_version-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: chrome_version-0.3.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba13a942475e86167486f88ef64b5331356c08d34bd04f539d0f92e2f062568c |
|
MD5 | 517e71da28a4c3ce869046dc8aa7cec7 |
|
BLAKE2b-256 | b36de90520efde6d8dbde5a4844fd275d84f054c1c24f014fee4901a7a8389c0 |