Skip to main content

Chromepilot

Chromedriver download manager and imports shortcuts

Description:
Download, unzip in memory and manages chromedrivers. Easily integrates with Selenium webdriver.

Installation

> pip install chromepilot

CLI

usage: chromepilot [-h]  ...

Chromedriver download manager and imports shortcuts.

positional arguments:
  
    search    Searches for installs of Google Chrome locally.
    check     Checks the version of Google Chrome and chromedrivers.
    upgrade   Download newer versions of chromedriver. 'upgrade -c' cleans after install.
    clear     Searches for outdated chromedrivers locally.
    write     Writes "pilot.toml" template on current directory

options:
  -h, --help  show this help message and exit

In your runtime, try:

from chromepilot import short
driver = short.driver()  # Easy access to pre-configured driver

Runtime

>>> # After install whith `> chromepilot upgrade`
>>> from chromepilot import short
>>>
>>> driver = short.driver()
>>> driver.get('some/url')
>>> entity = driver.find_element(short.By.TAG_NAME, 'tag')

The pilot.toml is a file where you define the config for your driver and the imports shortcuts (your most used imports or those big, hard to remember Selenium imports).

When you import chromepilot.short it will search for a 'global' pilot.toml
in ~/.cache/chromepilot in Linux and %LOCALAPPDATA%\chromepilot in Windows.
This file will be readden wherever you import chromepilot.short.

The settings for the global pilot.toml will be overwritten by a 'local' one,
that is, the pilot.toml in the same directory as your main.py.

Just do a chromepilot write to see how the pilot.toml looks like.

Moreover

>>> short.global_toml  # Has chromepilot parsed my global pilot.toml?
True

>>> short.local_toml  # Has chromepilot parsed my local pilot.toml?
True

>>> short.parsed_options  # dict containing the values passed to driver constructor
{'service': {...}, ...}

>>> driver = short.driver(use_toml=False)  # Don't use toml

p.s: There's no dependencies for the CLI usage. If your Python version is below 3.11 you will need the tomlkit package to use chromepilot.short. Selenium is a dependency if you want short.driver()

Metadata

Release files for chromepilot 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chromepilot 1.0.0
File Size Uploaded
chromepilot-1.0.0.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chromepilot 1.0.0
File Interpreter ABI Platform
chromepilot-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.6 kB

Release files / chromepilot-1.0.0.tar.gz

Download URL chromepilot-1.0.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c6e45296e1424729751d1644080e5d045bd2d37debc874db88901f71cdf1c24c
BLAKE2b-256 checksum
How to use checksums
b7e3a60b5e7885091f24507d7f9323de48026b2156e4dab54dcf960927a098fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release files / chromepilot-1.0.0-py3-none-any.whl

Download URL chromepilot-1.0.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a463129c44bde321da53779cc12223db1d261e88691dbe161fdfcaf0202b2e25
BLAKE2b-256 checksum
How to use checksums
3074433a68e80265559d1a631bf56a70f29ce2c9a8ed30fecc07ed533bba8d3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page