Optimize WebDriver usage in Selenium with Python. Manage processes, terminate efficiently, and handle PIDs using CSV. Simplify automation!
Project description
webdriver_cache_manager
webdriver_cache_manager
simplifies managing ChromeDriver instances in Selenium using Python. Track active processes, terminate unused instances, and handle associated PIDs with ease.
Installation
Install via pip:
pip install webdriver_cache_manager
Features
- Process Tracking: Monitor active ChromeDriver instances.
- Termination: Safely terminate unused ChromeDriver processes.
- CSV Management: Handle PIDs efficiently using CSV files.
Usage
-
Import Package:
from webdriver_cache_manager import ManageChromeDriverCache
- Initialize Manager:
- Create a
Chrome Driver
instance. - Utilize the methods for managing ChromeDriver instances.
-
ManageChromeDriverCache(driver)
- Create a
- Initialize Manager:
Examples
Check out the provided examples and utilities for managing ChromeDriver instances in the examples
directory.
Contributions
Contributions are welcome! If you encounter issues or have suggestions, feel free to create an issue or submit a pull request.
License
This project is licensed under the MIT License.
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 webdriver_cache_manager-0.0.4.tar.gz
.
File metadata
- Download URL: webdriver_cache_manager-0.0.4.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca114a111b982b97184002ef5cf83675ecfb76dc911d87ce8fd1501d2d4e9a0f |
|
MD5 | d529e0853deb60ecfe9fa44ebcdd68cf |
|
BLAKE2b-256 | a1a3a5d4b9e5bf24b9c476e8135a7f74b156b0521cab46f9843c3a6a69c0baae |
File details
Details for the file webdriver_cache_manager-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: webdriver_cache_manager-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ec7b3d18dc02d23df9b88323454ebe93069f3001ab47e4fb23b93f9c7c0594d |
|
MD5 | 77e2fb02d550d7bf475af18d29dced04 |
|
BLAKE2b-256 | b8adf6ae39703e700aff0b9398758f3ea0aa344d50b0ef1223feef295a255a1c |