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.3.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.3-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file solari_browser-0.1.3.tar.gz.

File metadata

  • Download URL: solari_browser-0.1.3.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for solari_browser-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5e13453e525c02da0ac71a121936d48b98a4b1c392ff66457ce680d3b942ccdc
MD5 d70d248b5d1e8573d4e2c38c524b535c
BLAKE2b-256 ed977654da1936b71ffaf3fcc0e82fd10272b5d9ec5d44babe95eba59d89aa2b

See more details on using hashes here.

File details

Details for the file solari_browser-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: solari_browser-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for solari_browser-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3c2929799909e1df60da1ef7e049ae0a9035d3c571e5e76d6442e69ab467ac14
MD5 7fad14aaed70c0b1069342ffb796455b
BLAKE2b-256 23593a3d3a4316ab9f5104ddb25404bd934847548a4b589a05fef836579e9491

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

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