Skip to main content

AGB Python SDK

Project description

AGB Python SDK

Client library for the AGB cloud service: create and manage sessions, run code and commands, use the file system, browser automation, and persistent context.

Installation

pip install agbcloud-sdk

Quick Start

from agb import AGB
from agb.session_params import CreateSessionParams

agb = AGB(api_key="your-api-key")
params = CreateSessionParams(image_id="agb-code-space-1")
result = agb.create(params)

if result.success:
    session = result.session
    code_result = session.code.run("print('Hello AGB!')", "python")
    print(code_result.result)
    cmd_result = session.command.execute("ls -la")
    print(cmd_result.output)
    agb.delete(session)
else:
    print(result.error_message)

Features

  • Session management (create, list, get, delete)
  • Code – run Python/JavaScript/Java/R in cloud
  • Command – execute shell commands
  • File – read, write, edit, search, transfer
  • Browser – automation, screenshots, fingerprint
  • Computer – mouse, keyboard, window, app, screen
  • Context – persistent data and sync policies

Documentation

Full docs and API reference: see the repository documentation (quick start, guides, API reference, examples).

License

Apache-2.0

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

agbcloud_sdk-0.12.0.tar.gz (134.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agbcloud_sdk-0.12.0-py3-none-any.whl (184.1 kB view details)

Uploaded Python 3

File details

Details for the file agbcloud_sdk-0.12.0.tar.gz.

File metadata

  • Download URL: agbcloud_sdk-0.12.0.tar.gz
  • Upload date:
  • Size: 134.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for agbcloud_sdk-0.12.0.tar.gz
Algorithm Hash digest
SHA256 e91d82ca7be273567cf4991447b974d6625ac34cfaf4cafa1a8e9339d19537ac
MD5 4682f52236c11648c4d51f325d98ecf0
BLAKE2b-256 4ddee1f42a8849df0975e76497d892908d744989bb0c8d0055124dddbb79ebb9

See more details on using hashes here.

File details

Details for the file agbcloud_sdk-0.12.0-py3-none-any.whl.

File metadata

  • Download URL: agbcloud_sdk-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 184.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for agbcloud_sdk-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d5abd10598eb8ceabb3df31683faffc1ced7e62aec53be52463be60984267c0
MD5 1c8c1ea416d765ac731832518c961ba7
BLAKE2b-256 9b24860f10d8f7f00543754ba458966af0434c50179905ab6b5121aa9cfaae4f

See more details on using hashes here.

Supported by

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