Skip to main content

A cross-platform Python utility to find Chromium-based browser executable paths on Windows, macOS, and Linux.

Project description

Get Chrome Paths

A cross-platform Python utility to find Chromium-based browser executable paths on Windows, macOS, and Linux.

Supports Python 2+.

Features

  • Detects installed Chrome, Chromium, and Microsoft Edge browsers
  • Supports Windows (common registry path lookup), macOS (common application paths), and Linux (common installation paths)

Installation

pip install get-chrome-paths

Usage

from __future__ import print_function

from get_chrome_paths import get_chrome_paths

# Get all available Chrome/Chromium-based browser paths
for path in get_chrome_paths():
    print(path)
# Example output on Windows:
# C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe
# C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe

You can also run as a module:

python -m get_chrome_paths
# Example output on Windows:
# C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe
# C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements.

License

MIT License. See LICENSE for more information.

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

get_chrome_paths-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

get_chrome_paths-0.1.1-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file get_chrome_paths-0.1.1.tar.gz.

File metadata

  • Download URL: get_chrome_paths-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for get_chrome_paths-0.1.1.tar.gz
Algorithm Hash digest
SHA256 03d7ba6f7a9aa7cd1ca80105b1c1856d3185bba0320f8b8b21a638a390494eed
MD5 004da58ced1dc3fd2ade723ade3ae136
BLAKE2b-256 ae8e8b017ee9407fbd70369ddf991da6a85c42c5b2dca4a7e357da5b205a3ea6

See more details on using hashes here.

File details

Details for the file get_chrome_paths-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for get_chrome_paths-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1effe7099d19c8ee5a5ba9b1d833bc83f16a07d51cb71e736e51da8b5cd8f395
MD5 690a6bdb8eb5d85590caa682fdf7bcb9
BLAKE2b-256 cc4cf64ddb044f354dd2532eed28023eab140b51ce071047264cd9b5fe3f451c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page