Skip to main content

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

solari_browser-0.1.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solari_browser-0.1.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

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

Hashes for solari_browser-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c40cf9c98ebd84b752ada659029d5201c96698c715347de7df0e94b5dfd414ce
MD5 3e94555c2bf1e0e939890d8afaa00b9d
BLAKE2b-256 84b06dd8b5ebe632d2b0f076ad07a19dd9a54b50ace29ebfcb69c1cf7705526f

See more details on using hashes here.

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

Hashes for solari_browser-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d8cf5f1c89de4c8f391850a38a94d7451ab571f3566a982b2829aec6cfa87657
MD5 0d238d9bfa583610c5e25e99c5e45f77
BLAKE2b-256 23646624d7f20e959e7b204dd5599d801832f0c1652158a7b0af3871fc8bb93d

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.3

2 files

This release

0.1.2 This release

2 files

0.1.1

2 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