| Name | SimpleChromeDriverManager JSON |
| Version |
1.0.0
JSON |
| download |
| home_page | https://github.com/fnmanfre/ChromeDriverManager |
| Summary | Chromedriver Manager is a Python library that automates the download and installation of the latest version of Chromedriver, making it easier to set up environments for Robotic Process Automation (RPA) applications. Ideal for developers using Selenium or other tools that require Chromedriver, this package ensures that you always have the correct version, eliminating compatibility issues between the browser and the driver. |
| upload_time | 2024-08-22 00:19:06 |
| maintainer | None |
| docs_url | None |
| author | Fernando N. Manfre |
| requires_python | >=3.10 |
| license | None |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# ChromeDriverManager
**Chromedriver Manager** is a Python library that automates the download and installation of the latest version of Chromedriver, making it easier to set up environments for Robotic Process Automation (RPA) applications. Ideal for developers using Selenium or other tools that require Chromedriver, this package ensures that you always have the correct version, eliminating compatibility issues between the browser and the driver.
### Current version: 1.0.0
### Features
* **Automatic Download:** Automatically downloads and installs the appropriate version of ChromeDriver based on the installed version of Chrome.
* **Compatibility Assurance:** Ensures that the ChromeDriver version matches the installed Chrome version, avoiding version mismatches.
* **Easy Integration:** Seamlessly integrates into existing automation scripts, reducing setup and configuration time.
* **Customization:** Offers flexibility to customize the download directory and other aspects of the ChromeDriver installation process.
### Note
* **Current Support:** The current version of `ChromeDriverManager` supports only Windows 64-bit systems. Support for other platforms will be added in future releases.
### Usage Example
Here’s a basic example of how to use the `ChromeDriverManager` to ensure that the latest ChromeDriver is installed and ready for use:
```
from chromedriver_manager import ChromeDriverManager
# Instantiate the ChromeDriver manager
manager = ChromeDriverManager()
# Check and install the correct ChromeDriver version if needed
chromedriver_path = manager.install()
print(f"ChromeDriver is installed at: {chromedriver_path}")
```
### Usage Example with Selenium
Here’s how you can use `ChromeDriverManager` with Selenium to automate browser tasks:
```
from selenium import webdriver
from chromedriver_manager import ChromeDriverManager
# Instantiate the ChromeDriver manager
manager = ChromeDriverManager()
# Ensure the correct version of ChromeDriver is installed and get its path
chromedriver_path = manager.install()
# Set up the WebDriver with the path to the ChromeDriver
options = webdriver.ChromeOptions()
driver = webdriver.Chrome(executable_path=chromedriver_path, options=options)
# Open a website and perform actions
driver.get('https://www.example.com')
# Print the title of the webpage
print(f"Page title is: {driver.title}")
# Close the browser
driver.quit()
```
### Usage Example with Selenium and Service
Here’s how you can use `ChromeDriverManager` with Selenium’s `Service` to automate browser tasks:
```
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from chromedriver_manager import ChromeDriverManager
# Instantiate the ChromeDriver manager
manager = ChromeDriverManager()
# Ensure the correct version of ChromeDriver is installed and get its path
chromedriver_path = manager.install()
# Set up the WebDriver with the path to the ChromeDriver using Service
service = Service(executable_path=chromedriver_path)
options = webdriver.ChromeOptions()
driver = webdriver.Chrome(service=service, options=options)
# Open a website and perform actions
driver.get('https://www.example.com')
# Print the title of the webpage
print(f"Page title is: {driver.title}")
# Close the browser
driver.quit()
```
### Exceptions
The library raises custom exceptions to handle specific errors:
* `ChromeVersionError`: Raised when the Chrome version cannot be determined.
* `ChromeDriverDownloadError`: Raised when the ChromeDriver download fails.
### Support
For support, please contact:
Fernando Manfré: fn.manfre@gmail.com
### Contribution
Contributions are welcome! Feel free to open issues or submit pull requests.
Raw data
{
"_id": null,
"home_page": "https://github.com/fnmanfre/ChromeDriverManager",
"name": "SimpleChromeDriverManager",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": null,
"author": "Fernando N. Manfre",
"author_email": "fn.manfre@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/eb/91/afbb46a56a7ddd6fd96dda43252f3f3a9531344c0321c2aec1153e438d1a/simplechromedrivermanager-1.0.0.tar.gz",
"platform": null,
"description": "# ChromeDriverManager\r\n\r\n**Chromedriver Manager** is a Python library that automates the download and installation of the latest version of Chromedriver, making it easier to set up environments for Robotic Process Automation (RPA) applications. Ideal for developers using Selenium or other tools that require Chromedriver, this package ensures that you always have the correct version, eliminating compatibility issues between the browser and the driver.\r\n\r\n\r\n### Current version: 1.0.0\r\n\r\n\r\n### Features\r\n\r\n* **Automatic Download:** Automatically downloads and installs the appropriate version of ChromeDriver based on the installed version of Chrome.\r\n* **Compatibility Assurance:** Ensures that the ChromeDriver version matches the installed Chrome version, avoiding version mismatches.\r\n* **Easy Integration:** Seamlessly integrates into existing automation scripts, reducing setup and configuration time.\r\n* **Customization:** Offers flexibility to customize the download directory and other aspects of the ChromeDriver installation process.\r\n\r\n\r\n### Note\r\n\r\n* **Current Support:** The current version of `ChromeDriverManager` supports only Windows 64-bit systems. Support for other platforms will be added in future releases.\r\n\r\n\r\n### Usage Example\r\n\r\nHere\u00e2\u20ac\u2122s a basic example of how to use the `ChromeDriverManager` to ensure that the latest ChromeDriver is installed and ready for use:\r\n\r\n```\r\nfrom chromedriver_manager import ChromeDriverManager\r\n\r\n# Instantiate the ChromeDriver manager\r\nmanager = ChromeDriverManager()\r\n\r\n# Check and install the correct ChromeDriver version if needed\r\nchromedriver_path = manager.install()\r\n\r\nprint(f\"ChromeDriver is installed at: {chromedriver_path}\")\r\n\r\n```\r\n\r\n\r\n### Usage Example with Selenium\r\n\r\nHere\u00e2\u20ac\u2122s how you can use `ChromeDriverManager` with Selenium to automate browser tasks:\r\n\r\n```\r\nfrom selenium import webdriver\r\nfrom chromedriver_manager import ChromeDriverManager\r\n\r\n# Instantiate the ChromeDriver manager\r\nmanager = ChromeDriverManager()\r\n\r\n# Ensure the correct version of ChromeDriver is installed and get its path\r\nchromedriver_path = manager.install()\r\n\r\n# Set up the WebDriver with the path to the ChromeDriver\r\noptions = webdriver.ChromeOptions()\r\ndriver = webdriver.Chrome(executable_path=chromedriver_path, options=options)\r\n\r\n# Open a website and perform actions\r\ndriver.get('https://www.example.com')\r\n\r\n# Print the title of the webpage\r\nprint(f\"Page title is: {driver.title}\")\r\n\r\n# Close the browser\r\ndriver.quit()\r\n\r\n```\r\n\r\n\r\n### Usage Example with Selenium and Service\r\n\r\nHere\u00e2\u20ac\u2122s how you can use `ChromeDriverManager` with Selenium\u00e2\u20ac\u2122s `Service` to automate browser tasks:\r\n\r\n\r\n```\r\nfrom selenium import webdriver\r\nfrom selenium.webdriver.chrome.service import Service\r\nfrom chromedriver_manager import ChromeDriverManager\r\n\r\n# Instantiate the ChromeDriver manager\r\nmanager = ChromeDriverManager()\r\n\r\n# Ensure the correct version of ChromeDriver is installed and get its path\r\nchromedriver_path = manager.install()\r\n\r\n# Set up the WebDriver with the path to the ChromeDriver using Service\r\nservice = Service(executable_path=chromedriver_path)\r\noptions = webdriver.ChromeOptions()\r\ndriver = webdriver.Chrome(service=service, options=options)\r\n\r\n# Open a website and perform actions\r\ndriver.get('https://www.example.com')\r\n\r\n# Print the title of the webpage\r\nprint(f\"Page title is: {driver.title}\")\r\n\r\n# Close the browser\r\ndriver.quit()\r\n\r\n```\r\n\r\n\r\n### Exceptions\r\n\r\nThe library raises custom exceptions to handle specific errors:\r\n\r\n* `ChromeVersionError`: Raised when the Chrome version cannot be determined.\r\n* `ChromeDriverDownloadError`: Raised when the ChromeDriver download fails.\r\n\r\n### Support\r\n\r\nFor support, please contact:\r\n\r\nFernando Manfr\u00c3\u00a9: fn.manfre@gmail.com\r\n\r\n\r\n### Contribution\r\n\r\nContributions are welcome! Feel free to open issues or submit pull requests.\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Chromedriver Manager is a Python library that automates the download and installation of the latest version of Chromedriver, making it easier to set up environments for Robotic Process Automation (RPA) applications. Ideal for developers using Selenium or other tools that require Chromedriver, this package ensures that you always have the correct version, eliminating compatibility issues between the browser and the driver.",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/fnmanfre/ChromeDriverManager"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e7f98b385862df351a3849a62f4b382ba4c41a2a845b882be5fee64ffd490130",
"md5": "d14eea50d8ec6971ff2209f0f326c5c7",
"sha256": "422971636fde57b4ad05949ecb136f58f9850e63274c1035eb88aa4b28c90415"
},
"downloads": -1,
"filename": "SimpleChromeDriverManager-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d14eea50d8ec6971ff2209f0f326c5c7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 6747,
"upload_time": "2024-08-22T00:19:05",
"upload_time_iso_8601": "2024-08-22T00:19:05.266617Z",
"url": "https://files.pythonhosted.org/packages/e7/f9/8b385862df351a3849a62f4b382ba4c41a2a845b882be5fee64ffd490130/SimpleChromeDriverManager-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "eb91afbb46a56a7ddd6fd96dda43252f3f3a9531344c0321c2aec1153e438d1a",
"md5": "70fa20b86a578dbe2ebc1bba00cb0615",
"sha256": "1beab75d97b3defed3aa5b450c4f19cd5519c772939ad531e2116ea5910a255f"
},
"downloads": -1,
"filename": "simplechromedrivermanager-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "70fa20b86a578dbe2ebc1bba00cb0615",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 6236,
"upload_time": "2024-08-22T00:19:06",
"upload_time_iso_8601": "2024-08-22T00:19:06.760468Z",
"url": "https://files.pythonhosted.org/packages/eb/91/afbb46a56a7ddd6fd96dda43252f3f3a9531344c0321c2aec1153e438d1a/simplechromedrivermanager-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-22 00:19:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "fnmanfre",
"github_project": "ChromeDriverManager",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "simplechromedrivermanager"
}