Skip to main content

Vision Browser logo

PyPI Python Versions Repository License

vision-browser

Async client for the Vision browser automation platform. The library wraps both the local Vision app API and the public cloud API, providing Pydantic models and retrying HTTP access powered by httpx.

Features

  • Async wrapper around Vision local (127.0.0.1:3030) and public (https://v1.empr.cloud/api/v1) endpoints
  • Ready-to-use Pydantic models for profiles, folders, proxies, fingerprints and running sessions
  • Automatic retries with exponential backoff for transient HTTP failures
  • Helper utilities for validating IDs, preparing proxy payloads and generating noise preferences

Requirements

  • Python 3.13+
  • Vision desktop application running locally for local API calls
  • Vision API token for public endpoints

Installation

pip install vision-browser-async

The package targets Python 3.13 and newer. Older interpreters are not supported. The installed module keeps the original import path (vision_browser).

Quick start

import asyncio
from vision_browser import VisionAPI


async def main() -> None:
    token = "your-api-token"
    async with VisionAPI(token) as client:
        folders = await client.list_folders()
        default_folder = folders[0]

        # Create a profile using the public API
        fingerprint = await client.get_fingerprint(platform="windows")
        profile = await client.create_profile(
            folder_id=default_folder.id,
            profile_name="Sample profile",
            fingerprint=fingerprint,
            platform="Windows",
            browser="Chrome",
        )

        # Start the profile through the local API
        running = await client.start_profile(profile)
        print(f"{running.profile_name} is running on port {running.port}")

        await client.stop_profile(running)


if __name__ == "__main__":
    asyncio.run(main())

Available API helpers

  • vision_browser.public_api_methods covers CRUD for folders, profiles, proxies and fingerprint retrieval.
  • vision_browser.local_api_methods exposes start/stop operations for profiles running in the local Vision application.
  • vision_browser.utils contains helpers for ID validation, proxy parsing and noise preference generation.
  • vision_browser.errors provides the base VisionBrowserAPIError raised when Vision responds with an error payload.

Refer to the module docstrings for detailed argument descriptions and return types.

Development and publishing

Build and upload distributions using build and twine:

python -m build
twine check dist/*
twine upload dist/*

License

Released under the MIT License.

Metadata

Release files for vision-browser-async 0.1.0

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

Source distribution (sdist)

Source distribution for vision-browser-async 0.1.0
File Size Uploaded
vision_browser_async-0.1.0.tar.gz 22.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vision-browser-async 0.1.0
File Interpreter ABI Platform
vision_browser_async-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 53.4 kB

Release files / vision_browser_async-0.1.0.tar.gz

Download URL vision_browser_async-0.1.0.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
76144a1b0e238bb9c581c46e388212a9a298a0b4d45df29bff339948d997b06c
BLAKE2b-256 checksum
How to use checksums
ec978578812a89350334d69d9935382a55a8c94da20ff2ca30f26294336a9c25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.8

Release files / vision_browser_async-0.1.0-py3-none-any.whl

Download URL vision_browser_async-0.1.0-py3-none-any.whl
Size 31.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39b8668c846e7d21ec548afa4678e6475c9ac601c11888e95a2608c2d361aeb8
BLAKE2b-256 checksum
How to use checksums
7ec822e8788993eb9b0eb29e3a9f24cdbd092ff059974ed3798eda5721e244cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.8

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release 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