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 environmentslist_instances()- List instances with optional filteringlist_tasks()- List available tasks for environmentscreate_instance()- Create new instance with optional task bindingget_instance()- Get existing instance by ID
Instance Methods
bind_task()- Bind a task to the instanceverify()- Verify the bound task with optional answerget_state()- Get current instance statereset()- Reset instance to clean stateexecute_soql_query()- Execute SOQL queryexport_data()- Export data from Salesforce objectslist_objects()- List available Salesforce objectsterminate()- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a8c9ab915df5cc135494c55108b424464f0810bf0250536b92196126f7bf46d
|
|
| MD5 |
45220363a203b7485b50e2803936ebb0
|
|
| BLAKE2b-256 |
227a03610854252676bb66d3670baeaffbc05ad8e0b71f1364b8fbb96e29f2ae
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72de4e38adb9297a506786eb73ff3ef97e1f6905bd10bbf89aa23db4008cf2a8
|
|
| MD5 |
a871c3a1bc46141a4df7210d149631df
|
|
| BLAKE2b-256 |
02f8be161f710aa45ed9d421aa67631bc53e0af3adaba2dfa7512e8b84ec45db
|