CloudTab Python SDK
Python connectors for HMAC-signed remote Selenium and Playwright sessions.
Install
Install from PyPI:
python -m pip install cloudtab
For local development, install this source directory:
python -m pip install .
Use
import os
from cloudtab.selenium import connect
driver = connect(
os.environ["CLOUDTAB_BASE_URL"],
os.environ["CLOUDTAB_API_KEY"],
os.environ["CLOUDTAB_SESSION_ID"],
)
try:
driver.get("https://example.com")
finally:
driver.quit()
Recommended .env values:
CLOUDTAB_BASE_URL=https://api.solbounty.fun
CLOUDTAB_API_KEY=replace-with-account-bearer-token
CLOUDTAB_SESSION_ID=replace-with-session-id
The same bearer token can select any session owned by that CloudTab account; the session ID chooses which saved browser profile to open. Never commit bearer tokens or session IDs to source control.
Playwright
Playwright is included with the normal cloudtab installation.
import os
from cloudtab.playwright import connect
with connect(
os.environ["CLOUDTAB_BASE_URL"],
os.environ["CLOUDTAB_API_KEY"],
os.environ["CLOUDTAB_SESSION_ID"],
) as session:
page = session.browser.contexts[0].pages[0]
page.goto("https://example.com")
print(page.title())
This uses an authenticated, one-time CDP bridge. Closing the context manager detaches Playwright and closes the remote browser session.
One SDK, two automation engines
cloudtab is one package. Choose the engine through its module:
from cloudtab import connect_selenium, connect_playwright
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudtab-0.1.3.tar.gz.
File metadata
- Download URL: cloudtab-0.1.3.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16924c41fad2eaa8786eb348bacf997063db347b32e3a64297826bb716808be0
|
|
| MD5 |
043d7373cb00155405997fc4d95e9853
|
|
| BLAKE2b-256 |
2b58564944da2588851a6cddc3b2fc2127bcd079350d8a0da0868d38dbf8cf19
|
File details
Details for the file cloudtab-0.1.3-py3-none-any.whl.
File metadata
- Download URL: cloudtab-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
572b6ed6393e4f96f6a4c09ab4fe088cde93e7bbbc59cedf306e08aef7f10546
|
|
| MD5 |
73c7f51b48622d32895ccdd41d78ad75
|
|
| BLAKE2b-256 |
18b98e8219485f52fbf264b6c99e6a272319299f7a7f79c18386d3c9d0b58762
|