Skip to main content

AGB Python SDK

Project description

AGB Python SDK


🔥 Moltbot (formerly Clawdbot) Quick Deployment

You can use AGB SDK to spin up a prebuilt Moltbot cloud desktop in minutes, then open the Moltbot console inside the desktop browser.


AGB Python SDK provides a convenient way to interact with the AGB cloud service.

Features

  • Create and manage sessions in the AGB cloud environment
  • Access session information
  • Work with file system, command execution, and code execution modules
  • Browser automation with AI-powered natural language operations
  • Advanced browser configuration (stealth mode, proxies, fingerprinting)
  • Structured data extraction from web pages

Installation

pip install agbcloud-sdk

Quick Start

from agb import AGB
from agb.session_params import CreateSessionParams

# Initialize AGB with your API key
agb = AGB(api_key="your-api-key")

# Create a session
params = CreateSessionParams(
    image_id="agb-code-space-1",
)
result = agb.create(params)

if result.success:
    session = result.session

    # Execute Python code
    code_result = session.code.run("print('Hello AGB!')", "python")
    print(code_result.result)

    # Execute shell command
    cmd_result = session.command.execute("ls -la")
    print(cmd_result.output)

    # Work with files
    session.file.write("/tmp/test.txt", "Hello World!")
    file_result = session.file.read("/tmp/test.txt")
    print(file_result.content)

    # Clean up
    agb.delete(session)
else:
    print(f"Failed to create session: {result.error_message}")

Documentation

For comprehensive documentation, guides, and examples, visit:

📚 Complete Documentation

Development

Prerequisites

  • Python 3.10 or higher
  • pip

Setup

  1. Clone the repository:

    git clone https://github.com/agbcloud/agbcloud-sdk.git
    cd agbcloud-sdk
    
  2. Create a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies:

    pip install -e ."[dev,test]"
    

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

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.10.0.tar.gz (120.0 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.10.0-py3-none-any.whl (164.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agbcloud_sdk-0.10.0.tar.gz
  • Upload date:
  • Size: 120.0 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.10.0.tar.gz
Algorithm Hash digest
SHA256 b184be7eb69ea9c0b7849e9e9469c8ccac2293bd1675a1ac5de8ca8cf6958f4d
MD5 8af4c7c7d6573033f3e2974e31838f29
BLAKE2b-256 36674e880468b579bad50413ce21eff71190f6bdf3926f7d3780f8624008bef7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agbcloud_sdk-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 164.9 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.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee93b4d2e6aac54b5bba215fde4e5d7d79a621172666278741b965d9b6e47028
MD5 4969818c4f02d10b8f747b514a4923dd
BLAKE2b-256 903522b37d746356833ffc08c480ab1482868cc24352a62fa382fcb62b366bff

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