browser_launcher
A utility for launching browsers (Chrome, Firefox, and alternatives) with specific profiles, URLs, and incognito/private mode from Python or the command line.
Features
- Launch Chrome or Firefox with a specific user profile and URL
- Support for incognito/private mode
- List available browser profiles
- List available browsers (including alternatives like Edge, Opera, Brave, etc.)
- Simple command-line interface (CLI)
- Usable as a Python library
Installation
pip install browser_launcher
Or install from source:
git clone https://github.com/mexyusef/browser_launcher.git
cd browser_launcher
pip install .
Usage
Command Line
List Chrome profiles:
browser-launcher list-profiles --browser chrome
List Firefox profiles:
browser-launcher list-profiles --browser firefox
List all available browsers:
browser-launcher list-browsers
Launch Firefox with a specific profile and URL (incognito):
browser-launcher launch --browser firefox --profile myprofile --url https://gmail.com --incognito
Launch Chrome with a specific profile and URL:
browser-launcher launch --browser chrome --profile "Profile 1" --url https://example.com
Python Library
from browser_launcher.profile_manager import BrowserProfileManager, LaunchOptions
mgr = BrowserProfileManager()
options = LaunchOptions(incognito=True)
mgr.launch_browser(
browser_type="firefox",
profile="myprofile",
url="https://gmail.com",
options=options
)
License
MIT License. See LICENSE file for details.
Metadata
Release files for browser-launcher 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| browser_launcher-0.0.1.tar.gz | 17.5 kB | Without provenance | Details for browser_launcher-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| browser_launcher-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for browser_launcher-0.0.1-py3-none-any.whl |
Total release size: 40.3 kB
Release files / browser_launcher-0.0.1.tar.gz
| Download URL | browser_launcher-0.0.1.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e288c4e0dcaeb2146e57bd29a69556498fe44a1f1e3b6b87e610427a89fa2b02
|
|
BLAKE2b-256 checksum How to use checksums |
66182965f8632c52788d2b9fa4cf9ac608c4fa7b873b11c69ea79dd497a1721d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|
Release files / browser_launcher-0.0.1-py3-none-any.whl
| Download URL | browser_launcher-0.0.1-py3-none-any.whl |
|---|---|
| Size | 22.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
abe493933826eccf546e56f523a99e5718662cf6858937da9d56c3c7e6dd8cb7
|
|
BLAKE2b-256 checksum How to use checksums |
ccbc540ce87ae0c35c14b3cebd5587a2452d57a3edcdc025470fc5abd05d2755
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|
Security for browser-launcher 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.