driverium


Namedriverium JSON
Version 1.2.2 PyPI version JSON
download
home_pagehttps://github.com/d3kxrma/driverium
SummaryPython library that provides functionality for managing and downloading ChromeDriver
upload_time2024-10-15 06:56:51
maintainerNone
docs_urlNone
authordekxrma
requires_pythonNone
licenseMIT
keywords python selenium webdriver chromedriver
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Driverium

Driverium is a Python library that provides functionality for managing and downloading ChromeDriver for different Chrome versions.

## Installation

To install Driverium, simply use pip:

```shell
pip install driverium
```

## Usage

```python
from driverium import Driverium
from selenium import webdriver
# Create an instance of Driverium
driverium = Driverium()

# Get the path to the ChromeDriver
driver_path = driverium.get_driver()

# Use the ChromeDriver path in your Selenium code
driver = webdriver.Chrome(driver_path)
```
or you can use driverium like this:

```python
from driverium import Driverium
from selenium import webdriver

driver = webdriver.Chrome(Driverium().get_driver())
```

### Methods

#### `get_driver() -> str`

Retrieves the path to the ChromeDriver. If the driver is not found, it will download it first.

#### `get_driver_url() -> str`

Retrieves the URL of the ChromeDriver based on the specified Chrome version.

#### `get_new_driver() -> str`

Retrieves the path to the latest version of the ChromeDriver.

#### `get_old_driver() -> str`

Retrieves the path to an older version of the ChromeDriver.

#### `download_driver(url: str) -> str`

Downloads the ChromeDriver from the specified URL and returns the path to the downloaded driver.

#### `quiet_download(url: str) -> io.BytesIO`

Downloads the file from the specified URL without displaying progress.

#### `progress_download(url: str) -> io.BytesIO`

Downloads the file from the specified URL and displays progress using a progress bar.


## Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue on the [GitHub repository](https://github.com/d3kxrma/driverium).


## License

Driverium is licensed under the MIT License. See the [LICENSE](https://github.com/d3kxrma/driverium/blob/main/LICENSE) file for more information.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/d3kxrma/driverium",
    "name": "driverium",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, selenium, webdriver, chromedriver",
    "author": "dekxrma",
    "author_email": "qqdjnuxez@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/27/2b/16fc0e0535af7f4fe276d0408ee355ca0cf0d9f6cfab374bf9e8071601b0/driverium-1.2.2.tar.gz",
    "platform": null,
    "description": "# Driverium\r\n\r\nDriverium is a Python library that provides functionality for managing and downloading ChromeDriver for different Chrome versions.\r\n\r\n## Installation\r\n\r\nTo install Driverium, simply use pip:\r\n\r\n```shell\r\npip install driverium\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nfrom driverium import Driverium\r\nfrom selenium import webdriver\r\n# Create an instance of Driverium\r\ndriverium = Driverium()\r\n\r\n# Get the path to the ChromeDriver\r\ndriver_path = driverium.get_driver()\r\n\r\n# Use the ChromeDriver path in your Selenium code\r\ndriver = webdriver.Chrome(driver_path)\r\n```\r\nor you can use driverium like this:\r\n\r\n```python\r\nfrom driverium import Driverium\r\nfrom selenium import webdriver\r\n\r\ndriver = webdriver.Chrome(Driverium().get_driver())\r\n```\r\n\r\n### Methods\r\n\r\n#### `get_driver() -> str`\r\n\r\nRetrieves the path to the ChromeDriver. If the driver is not found, it will download it first.\r\n\r\n#### `get_driver_url() -> str`\r\n\r\nRetrieves the URL of the ChromeDriver based on the specified Chrome version.\r\n\r\n#### `get_new_driver() -> str`\r\n\r\nRetrieves the path to the latest version of the ChromeDriver.\r\n\r\n#### `get_old_driver() -> str`\r\n\r\nRetrieves the path to an older version of the ChromeDriver.\r\n\r\n#### `download_driver(url: str) -> str`\r\n\r\nDownloads the ChromeDriver from the specified URL and returns the path to the downloaded driver.\r\n\r\n#### `quiet_download(url: str) -> io.BytesIO`\r\n\r\nDownloads the file from the specified URL without displaying progress.\r\n\r\n#### `progress_download(url: str) -> io.BytesIO`\r\n\r\nDownloads the file from the specified URL and displays progress using a progress bar.\r\n\r\n\r\n## Contributing\r\n\r\nContributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue on the [GitHub repository](https://github.com/d3kxrma/driverium).\r\n\r\n\r\n## License\r\n\r\nDriverium is licensed under the MIT License. See the [LICENSE](https://github.com/d3kxrma/driverium/blob/main/LICENSE) file for more information.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python library that provides functionality for managing and downloading ChromeDriver",
    "version": "1.2.2",
    "project_urls": {
        "Homepage": "https://github.com/d3kxrma/driverium",
        "Source": "https://github.com/d3kxrma/driverium"
    },
    "split_keywords": [
        "python",
        " selenium",
        " webdriver",
        " chromedriver"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2aaf1d3f6bf4faa36c7a81bacc12fcbab34775b7328aa2c9289d8cb8cfd7b658",
                "md5": "ed169c8157819687ab9893a9e8377a9d",
                "sha256": "77e3f9e0eebb2edd445df5765170777b9eb8db3141c0817a53a7b83f217081a6"
            },
            "downloads": -1,
            "filename": "driverium-1.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ed169c8157819687ab9893a9e8377a9d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5491,
            "upload_time": "2024-10-15T06:56:50",
            "upload_time_iso_8601": "2024-10-15T06:56:50.275553Z",
            "url": "https://files.pythonhosted.org/packages/2a/af/1d3f6bf4faa36c7a81bacc12fcbab34775b7328aa2c9289d8cb8cfd7b658/driverium-1.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "272b16fc0e0535af7f4fe276d0408ee355ca0cf0d9f6cfab374bf9e8071601b0",
                "md5": "ff7ab0e340faa7cd49d318fbcc629ac8",
                "sha256": "49a17cb06d27118a756606ac01197cc4f3c2446ef5f74c669dd0e9268d1b63ec"
            },
            "downloads": -1,
            "filename": "driverium-1.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "ff7ab0e340faa7cd49d318fbcc629ac8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5033,
            "upload_time": "2024-10-15T06:56:51",
            "upload_time_iso_8601": "2024-10-15T06:56:51.400185Z",
            "url": "https://files.pythonhosted.org/packages/27/2b/16fc0e0535af7f4fe276d0408ee355ca0cf0d9f6cfab374bf9e8071601b0/driverium-1.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-15 06:56:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "d3kxrma",
    "github_project": "driverium",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "driverium"
}
        
Elapsed time: 0.39251s