solari-browser (Python)
Python SDK for Solari Browser — managed, stealth-hardened remote Chromium as
an API, driven over the Playwright wire protocol (or raw CDP). A faithful port of
the TypeScript @solarisdk/browser package; class, method, and field names match
it one-for-one (snake_case where TS uses camelCase).
The browser runs remotely on Solari's pool — pip install pulls the driver only;
you do not run patchright install chromium locally.
Install
pip install solari-browser
Quickstart
import asyncio, os
from solari_browser import Solari
async def main():
solari = Solari(api_key=os.environ["SOLARI_API_KEY"])
browser = await solari.launch(stealth=True) # managed, stealth-hardened Chromium
page = await browser.new_page()
await page.goto("https://example.com")
print(await page.title())
await browser.close()
asyncio.run(main())
Sessions
Drive a session yourself instead of launch():
solari = Solari(api_key=os.environ["SOLARI_API_KEY"])
session = await solari.sessions.create(stealth=True, proxy="smart")
# ... connect over the session's CDP/WS endpoint ...
await solari.close()
Solari(...) accepts api_key, region (default us-west), and base_url
(default https://api.getsolari.com).
Docs
Full reference and language guides: https://getsolari.com
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 solari_browser-0.1.2.tar.gz.
File metadata
- Download URL: solari_browser-0.1.2.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c40cf9c98ebd84b752ada659029d5201c96698c715347de7df0e94b5dfd414ce
|
|
| MD5 |
3e94555c2bf1e0e939890d8afaa00b9d
|
|
| BLAKE2b-256 |
84b06dd8b5ebe632d2b0f076ad07a19dd9a54b50ace29ebfcb69c1cf7705526f
|
File details
Details for the file solari_browser-0.1.2-py3-none-any.whl.
File metadata
- Download URL: solari_browser-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8cf5f1c89de4c8f391850a38a94d7451ab571f3566a982b2829aec6cfa87657
|
|
| MD5 |
0d238d9bfa583610c5e25e99c5e45f77
|
|
| BLAKE2b-256 |
23646624d7f20e959e7b204dd5599d801832f0c1652158a7b0af3871fc8bb93d
|