| Name | vision-browser-async JSON |
| Version |
0.1.0
JSON |
| download |
| home_page | None |
| Summary | Async HTTP client for interacting with Vision browser automation APIs. |
| upload_time | 2025-10-22 13:29:21 |
| maintainer | None |
| docs_url | None |
| author | diprog |
| requires_python | >=3.13 |
| license | MIT License
Copyright (c) 2025 diprog
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|
| keywords |
vision
browser
automation
httpx
pydantic
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
<p align="center">
<img src="https://browser.vision/_next/image?url=%2Ficons%2Flogo.svg&w=256&q=75" alt="Vision Browser logo" width="164">
</p>
<p align="center">
<a href="https://pypi.org/project/vision-browser-async/">
<img alt="PyPI" src="https://img.shields.io/pypi/v/vision-browser-async.svg">
</a>
<a href="https://pypi.org/project/vision-browser-async/">
<img alt="Python Versions" src="https://img.shields.io/pypi/pyversions/vision-browser-async.svg">
</a>
<a href="https://github.com/diprog/vision-browser">
<img alt="Repository" src="https://img.shields.io/badge/source-github-black">
</a>
<a href="LICENSE">
<img alt="License" src="https://img.shields.io/badge/license-MIT-blue.svg">
</a>
</p>
# 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
```bash
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
```python
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](https://pypi.org/project/build/) and [twine](https://pypi.org/project/twine/):
```bash
python -m build
twine check dist/*
twine upload dist/*
```
## License
Released under the [MIT License](LICENSE).
Raw data
{
"_id": null,
"home_page": null,
"name": "vision-browser-async",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.13",
"maintainer_email": null,
"keywords": "vision, browser, automation, httpx, pydantic",
"author": "diprog",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/ec/97/8578812a89350334d69d9935382a55a8c94da20ff2ca30f26294336a9c25/vision_browser_async-0.1.0.tar.gz",
"platform": null,
"description": "<p align=\"center\">\n <img src=\"https://browser.vision/_next/image?url=%2Ficons%2Flogo.svg&w=256&q=75\" alt=\"Vision Browser logo\" width=\"164\">\n</p>\n\n<p align=\"center\">\n <a href=\"https://pypi.org/project/vision-browser-async/\">\n <img alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/vision-browser-async.svg\">\n </a>\n <a href=\"https://pypi.org/project/vision-browser-async/\">\n <img alt=\"Python Versions\" src=\"https://img.shields.io/pypi/pyversions/vision-browser-async.svg\">\n </a>\n <a href=\"https://github.com/diprog/vision-browser\">\n <img alt=\"Repository\" src=\"https://img.shields.io/badge/source-github-black\">\n </a>\n <a href=\"LICENSE\">\n <img alt=\"License\" src=\"https://img.shields.io/badge/license-MIT-blue.svg\">\n </a>\n</p>\n\n# vision-browser\n\nAsync 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`.\n\n## Features\n- Async wrapper around Vision local (`127.0.0.1:3030`) and public (`https://v1.empr.cloud/api/v1`) endpoints\n- Ready-to-use Pydantic models for profiles, folders, proxies, fingerprints and running sessions\n- Automatic retries with exponential backoff for transient HTTP failures\n- Helper utilities for validating IDs, preparing proxy payloads and generating noise preferences\n\n## Requirements\n- Python 3.13+\n- Vision desktop application running locally for local API calls\n- Vision API token for public endpoints\n\n## Installation\n```bash\npip install vision-browser-async\n```\nThe package targets Python 3.13 and newer. Older interpreters are not supported. The installed module keeps the original import path (`vision_browser`).\n\n## Quick start\n```python\nimport asyncio\nfrom vision_browser import VisionAPI\n\n\nasync def main() -> None:\n token = \"your-api-token\"\n async with VisionAPI(token) as client:\n folders = await client.list_folders()\n default_folder = folders[0]\n\n # Create a profile using the public API\n fingerprint = await client.get_fingerprint(platform=\"windows\")\n profile = await client.create_profile(\n folder_id=default_folder.id,\n profile_name=\"Sample profile\",\n fingerprint=fingerprint,\n platform=\"Windows\",\n browser=\"Chrome\",\n )\n\n # Start the profile through the local API\n running = await client.start_profile(profile)\n print(f\"{running.profile_name} is running on port {running.port}\")\n\n await client.stop_profile(running)\n\n\nif __name__ == \"__main__\":\n asyncio.run(main())\n```\n\n## Available API helpers\n- `vision_browser.public_api_methods` covers CRUD for folders, profiles, proxies and fingerprint retrieval.\n- `vision_browser.local_api_methods` exposes start/stop operations for profiles running in the local Vision application.\n- `vision_browser.utils` contains helpers for ID validation, proxy parsing and noise preference generation.\n- `vision_browser.errors` provides the base `VisionBrowserAPIError` raised when Vision responds with an error payload.\n\nRefer to the module docstrings for detailed argument descriptions and return types.\n\n## Development and publishing\nBuild and upload distributions using [build](https://pypi.org/project/build/) and [twine](https://pypi.org/project/twine/):\n```bash\npython -m build\ntwine check dist/*\ntwine upload dist/*\n```\n\n## License\nReleased under the [MIT License](LICENSE).\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2025 diprog\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n ",
"summary": "Async HTTP client for interacting with Vision browser automation APIs.",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/diprog/vision-browser",
"Issues": "https://github.com/diprog/vision-browser/issues",
"Source": "https://github.com/diprog/vision-browser"
},
"split_keywords": [
"vision",
" browser",
" automation",
" httpx",
" pydantic"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "7ec822e8788993eb9b0eb29e3a9f24cdbd092ff059974ed3798eda5721e244cb",
"md5": "e349764360a5cbe55ac5a96fd499ca87",
"sha256": "39b8668c846e7d21ec548afa4678e6475c9ac601c11888e95a2608c2d361aeb8"
},
"downloads": -1,
"filename": "vision_browser_async-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e349764360a5cbe55ac5a96fd499ca87",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.13",
"size": 31313,
"upload_time": "2025-10-22T13:29:19",
"upload_time_iso_8601": "2025-10-22T13:29:19.761806Z",
"url": "https://files.pythonhosted.org/packages/7e/c8/22e8788993eb9b0eb29e3a9f24cdbd092ff059974ed3798eda5721e244cb/vision_browser_async-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "ec978578812a89350334d69d9935382a55a8c94da20ff2ca30f26294336a9c25",
"md5": "40e7dc690074b3feff0cbf4de0405e7d",
"sha256": "76144a1b0e238bb9c581c46e388212a9a298a0b4d45df29bff339948d997b06c"
},
"downloads": -1,
"filename": "vision_browser_async-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "40e7dc690074b3feff0cbf4de0405e7d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.13",
"size": 22108,
"upload_time": "2025-10-22T13:29:21",
"upload_time_iso_8601": "2025-10-22T13:29:21.315959Z",
"url": "https://files.pythonhosted.org/packages/ec/97/8578812a89350334d69d9935382a55a8c94da20ff2ca30f26294336a9c25/vision_browser_async-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-22 13:29:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "diprog",
"github_project": "vision-browser",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "vision-browser-async"
}