Skip to main content

Async API wrapper for Vision Browser

Project description

Vision Browser Python API Wrapper

Asynchronous Python library for interacting with the Vision Browser API. Allows you to manage browser profiles, folders, and other entities through a convenient interface.

Installation

pip install visionbrowser

Usage example

import asyncio

import visionbrowser



async def main():

    vb_api = visionbrowser.Api()

    profiles = await vb_api.get_launched_profiles(token='YOUR_API_TOKEN')

    print(profiles)



if __name__ == '__main__':

    asyncio.run(main())

Available methods

We have a complete list of available functions in the original API documentation. You can view them on the website https://docs.browser.vision.

To use each method you need, you need to define its class.

Example:

import visionbrowser



vb_api = visionbrowser.Api() # For API

vb_profiles = visionbrowser.Profiles() # For Profiles

vb_folders = visionbrowser.Folders() # For Folders

# And other

Error handling

The library raises the following exceptions:

  • visionbrowser.exceptions.FailedConnection: Error connecting to the API.

  • visionbrowser.exceptions.APIError: Error returned by the Vision Browser API.

There are also warnings. They are not fully implemented, but there is an example.

await visionbrowser.Api.start_profile(token=token, profile_id=profile_id, folder_id=folder_id)



# If your browser was already launched inside the Vision App, then you cannot launch it through the API, and the code will display:

# WARNING:visionbrowser.api:The port was found to be empty after the application/process returned. Most likely the profile was launched inside Vision, or some other issue occurred.

Examples

See usage examples in the examples folder.


Contributing

We will gladly welcome all comments and wishes. 😊\

If you want to contact me, please send me a private message on Github (europecdc).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

visionbrowser-0.0.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

visionbrowser-0.0.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file visionbrowser-0.0.2.tar.gz.

File metadata

  • Download URL: visionbrowser-0.0.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.8

File hashes

Hashes for visionbrowser-0.0.2.tar.gz
Algorithm Hash digest
SHA256 78bd54af7fc13bb589b14ffc5bcda529947be8c555f02f4161956104a45c346e
MD5 61ea74deabce76fe0f5057db29ba6ec0
BLAKE2b-256 f00ea122688aa9aa8edcc23cc9cfad4b7eab06f76c5a96bbdbf0c79fee92b4af

See more details on using hashes here.

File details

Details for the file visionbrowser-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for visionbrowser-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 555822808c09938f5998fafa43a91320f664796c1e983d6b0203929af6c32cc2
MD5 00a5f79081af3f16c9073d5382808725
BLAKE2b-256 963355fc7503130b7f51098099b1fa1961302b780d051b02f7706bf071cdbef5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page