Python SDK for Igloo Cloud
Project description
Igloo Python Connector
Igloo Python Connector is a Python wrapper for the Igloo Cloud API. It also provides additional useful methods and examples.
Installation
Note, we assume you have a version of Python >= 3.10 and < 3.14 already installed on your machine. If not, please download and install Python 3.13 from the official website. Also note, we recommend that you perform the installation within a Python virtual environment. See here for more info.
Once created, please activate your virtual environment and install the Igloo Python Connector package using the following command:
pip install wtwco-igloo
You should now be able to import the package in your Python code:
import wtwco_igloo
Connecting to the API
Connect to the API with device code flow:
from wtwco_igloo import Connection
connection = Connection.from_device_code(api_url, client_id, tenant_id)
# View your workspaces
print(connection.get_workspaces())
Documentation and Examples
For documentation and examples please see WTW Client Services.
Release Notes
2.1
Improvements
- Interactive token is now the default authentication method used throughout the example code.
- New methods and an example (
documentation_example.py) for getting all table documentation for a given model or project. - Improved support for copying runs and projects with files between environments and workspaces.
- Improvements to Calculation Pools:
- New
CalculationPoolclass with information such as cores and memory. - Methods that perform calculations allow for a pool to be specified by name or id.
- New
- Improvements to the
Runclass:- New method
finalizefor finalizing a run. - Several new methods for getting run results.
- Two new methods (
run_results_to_csvandrun_result_table_nodes_to_csv) for exporting run results to CSV. - Comparison of run results with string values is now allowed.
- And other quality of life improvements.
- New method
- Improvements to the
Projectclass:- New properties added, including
modelandcontains_finalized_runs. - Support for default pools with
default_pool_nameanddefault_pool_idproperties. - New method
updatefor refreshing state.
- New properties added, including
- New
get_or_create_projectmethod added to bothConnectionandWorkspaceclasses. - New method
updateadded to the UploadedFile class for refreshing state. - String comparisons for object names are case-insensitive.
- Added
get_..._by_idmethods for fetching pools, workspace, projects, files, and runs by id. - Customisable backoff retrying for the following HTTP response status codes 429, 502, 503, 504.
Compatibility
- Support for Python 3.9 dropped as it is now end-of-life.
Bugfixes
- Fixed bug with empty workspaces failing to list projects.
- Fixed bug when copying projects with the same name across environments.
- Fixed bug where newly uploaded files would have
upload_statusbe'UploadNotStarted'.
Security
- Updated third-party package dependencies to pick up upstream security and stability fixes.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 wtwco_igloo-2.1.0-py3-none-any.whl.
File metadata
- Download URL: wtwco_igloo-2.1.0-py3-none-any.whl
- Upload date:
- Size: 75.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
387bb42aea00aaec7eeec0596c4c37a4d2e1bca7c582e41ef951ff1777f64eb7
|
|
| MD5 |
4ca6461da1f974772104ed3453e6666c
|
|
| BLAKE2b-256 |
825f35cf4ce8d7baeb29dc4f2751e7032e79be1ce3b6c7e48882522fd74d6a0e
|