Skip to main content

Python SDK for the Abundant Environment API - simulation environments for RL agent training

Project description

Abundant SDK

Python SDK for the Abundant Environment API - simulation environments for RL agent training.

Installation

pip install abundant-sdk

Features

  • Task System: Bind tasks to instances and verify completion
  • Enhanced Instance Management: List, filter, and manage instances
  • SOQL Integration: Execute Salesforce Object Query Language queries
  • Data Export: Export data from Salesforce objects
  • State Tracking: Monitor current page, user, and data mutations
  • Async/await support: Full async/await support with context managers
  • Type hints and Pydantic models: Strong typing throughout
  • Browser Automation: Integration with Playwright for browser automation

API Reference

Client Methods

  • list_environments() - List available simulation environments
  • list_instances() - List instances with optional filtering
  • list_tasks() - List available tasks for environments
  • create_instance() - Create new instance with optional task binding
  • get_instance() - Get existing instance by ID

Instance Methods

  • bind_task() - Bind a task to the instance
  • verify() - Verify the bound task with optional answer
  • get_state() - Get current instance state
  • reset() - Reset instance to clean state
  • execute_soql_query() - Execute SOQL query
  • export_data() - Export data from Salesforce objects
  • list_objects() - List available Salesforce objects
  • terminate() - Terminate the instance

Examples

See the examples directory for more detailed examples including RL training loops and task-based workflows.

Development

For development setup:

git clone https://github.com/your-org/simulation-env-api.git
cd simulation-env-api
pip install -e ".[dev]"

License

Apache License - see LICENSE file for details.

Version History

v0.2.0

  • Added comprehensive task system with binding and verification
  • Enhanced instance management with filtering and listing
  • Added SOQL query execution and data export capabilities
  • Improved state tracking with detailed page and user information
  • Updated all examples to use new task-based workflows

v0.1.0

  • Initial release with basic client functionality
  • Support for environment listing and instance management
  • Basic verification and state tracking

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

abundant_sdk-0.2.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

abundant_sdk-0.2.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file abundant_sdk-0.2.1.tar.gz.

File metadata

  • Download URL: abundant_sdk-0.2.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for abundant_sdk-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6a8c9ab915df5cc135494c55108b424464f0810bf0250536b92196126f7bf46d
MD5 45220363a203b7485b50e2803936ebb0
BLAKE2b-256 227a03610854252676bb66d3670baeaffbc05ad8e0b71f1364b8fbb96e29f2ae

See more details on using hashes here.

File details

Details for the file abundant_sdk-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: abundant_sdk-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for abundant_sdk-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 72de4e38adb9297a506786eb73ff3ef97e1f6905bd10bbf89aa23db4008cf2a8
MD5 a871c3a1bc46141a4df7210d149631df
BLAKE2b-256 02f8be161f710aa45ed9d421aa67631bc53e0af3adaba2dfa7512e8b84ec45db

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