Skip to main content

solari-desktop (Python)

Python SDK for Solari Desktop — managed, hardware-isolated Linux desktops with a computer-use action API (mouse, keyboard, screenshot), driven over a WebSocket control channel. Mirrors the TypeScript @solarisdk/desktop package.

Capabilities and limits at a glance: https://docs.getsolari.com/sdk-capabilities.

Install

pip install solari-desktop

Quickstart

import asyncio, os
from solari_desktop import DesktopClient

async def main():
    client = DesktopClient(api_key=os.environ["SOLARI_API_KEY"])
    desktop = await client.create()          # managed Linux desktop
    try:
        await desktop.connect()
        png = await desktop.screenshot()     # PNG bytes
    finally:
        await desktop.kill()
        await client.aclose()

asyncio.run(main())

DesktopClient(...) accepts api_key, base_url (default https://api.getsolari.com; https://api-sta.getsolari.com for staging), and call_timeout_ms. The same slr_live_… key authenticates against both the browser and desktop/sandbox APIs.

Synchronous use

SyncDesktopClient takes the same arguments and returns synchronous handles (every method runs to completion on the client's own event loop):

import os
from solari_desktop import SyncDesktopClient

with SyncDesktopClient(api_key=os.environ["SOLARI_API_KEY"]) as client:
    desktop = client.create()
    try:
        desktop.connect()
        png = desktop.screenshot()
    finally:
        desktop.kill()

Docs: https://getsolari.com

Metadata

Release files for solari-desktop 0.6.2

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

Source distribution (sdist)

Source distribution for solari-desktop 0.6.2
File Size Uploaded Provenance Actions
solari_desktop-0.6.2.tar.gz 9.7 kB Without provenance Details for solari_desktop-0.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for solari-desktop 0.6.2
File Interpreter ABI Platform Actions
solari_desktop-0.6.2-py3-none-any.whl Python 3 none any Details for solari_desktop-0.6.2-py3-none-any.whl

Total release size: 18.1 kB

Release files / solari_desktop-0.6.2.tar.gz

Download URL solari_desktop-0.6.2.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2939c8cd856acac45370b6053cb92b46e8b8b77308721c148d175a8e2d3a5415
BLAKE2b-256 checksum
How to use checksums
aceb9e1981b16f9008b6bb70a919e5ca947b5f8faeb3e5614c4b6e220559fbd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / solari_desktop-0.6.2-py3-none-any.whl

Download URL solari_desktop-0.6.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3c34e4e5c017d4cd23800ac233bf842997e59277776ff21b80e3ce8c9bcf917
BLAKE2b-256 checksum
How to use checksums
182541597f4bd02a5bf1d79e8ca29fd509e2d2b97c8f625907d6a750a8ce09a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for solari-desktop 0.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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