Simple script for manage browser's profiles.
Project description
Profile Launcher
A Python Script for Effortless Browser Profile Management
⭐ About
This Python script simplifies launching browser profiles by automatically retrieving profile information from each browser's config directory. It presents these profiles as launch options, saving time and enhancing workflow, especially for users who frequently switch between multiple profiles.
⚡️ Requirements
📦 Installation
Using pipx
(recommended)
$ pipx install pybrowsers-profiles
Using pip
install
# Clone repository
$ git clone "https://github.com/haaag/PyBrowsers"
$ cd PyBrowsers-Profiles
# Create virtual environment & source
$ python -m venv .venv && source .venv/bin/activate
# Install deps
$ (.venv ) pip install -r requirements.txt
# Install script in local environment
$ (.venv ) pip install .
🚀 Usage
$ pybrowsers --help
usage: pybrowsers [-l] [-d DISABLE] [-e ENABLE] [-f] [-t]
[-m MENU] [-v] [-V] [browser] [-o URL]
Simple script for manage browser's profiles
options:
browser Browser name
-e, --enable Enable browser
-d, --disable Disable browser
-u, --url Open <URL> in browser
-l, --list Show browsers list and status
-t, --table Show browsers list with detail
-m, --menu Select menu (default: dmenu)
-f, --found Browsers found
-V, --version Show version
-h, --help Show help
-v, --verbose Verbose mode
locations:
$HOME/.local/share/pybrowsers
Use no flags
to launch menu
# Open menu with browsers found
$ pybrowsers
Use flag browser
for browser's profile
# Open menu with profiles list
$ pybrowsers firefox
Use flag -o, --open
for launching profile with url
Use flag -m, --menu
to specify the launcher you want to use (default: dmenu
)
Use flag -l, --list
for status
Use flag -d, --disable
or -e, --enable
# Disable browser (won't appear in `browsers found`)
$ pybrowsers -d firefox
# Enable browser
$ pybrowsers -e firefox
Use flag -r, --running
-r, --running
Supported on: 🦊
This flag will show all running browsers and profiles, as long as it has been
opened with pybrowsers
.
➕ Add Browser
You can add a browser creating a JSON
file in $XDG_DATA_HOME/pybrowsers/
or
~/.local/share/pybrowsers
Example
{
"name": "LibreWolf",
"command": "librewolf",
"path": "~/.librewolf/profiles.ini",
"engine": "gecko",
"enabled": true
}
🌐 Browsers
🧰 Dependencies
🧰 TODO
- Create
interactive menu
for adding browser data - Update screenshots
- Add
flag
for open URLs - Please, use
pathlib.Path
- BUG: Issue when the profile name contains spaces
- Add support for
JSON
files (prioritize)
Project details
Release history Release notifications | RSS feed
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 pybrowsers_profiles-0.0.13.tar.gz
.
File metadata
- Download URL: pybrowsers_profiles-0.0.13.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ace1ea673a83285d0ac08bee2f94258c47228b5af7403c29c356c6d7fa5daae0 |
|
MD5 | 2bd573e38fabb5cb62a5aa882ccf39e9 |
|
BLAKE2b-256 | 05bc10e8759e83803c100b69048c0a7d7c248a31e2246c1aabdf2395aed6d102 |
File details
Details for the file pybrowsers_profiles-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: pybrowsers_profiles-0.0.13-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff2ce9d3f85db1bda5384761f1667c97b7cc746e36a446f5387fd29e857909ca |
|
MD5 | 35872ede578a9c328d9697251b2f86ca |
|
BLAKE2b-256 | ae9c0bc1baa60bb2207039835689351e585ffab72b22ba21572c10ff45a658c4 |