A Geospatial Exploration and Orchestration Studio (GEOStudio) SDK for Python.
Project description
🌍 GEOStudio Python SDK
| License |
|
| Distribution | |
| TerraStackAI |
|
| Built With |
|
🚀 Overview
The Geospatial Exploration and Orchestration Studio is an integrated platform for fine-tuning, inference, and orchestration of geospatial AI models. It combines a no-code UI, low-code SDK, and APIs to make working with geospatial data and AI accessible to everyone, from researchers to developers.
For interaction with the Geospatial Studio, in addition to the web-base UI and RESTful APIs, users can use the following tools (included in this repository):
- Python SDK
- QGIS plugin
These interfaces require access to a deployed instance of the Geospatial Studio, this could be remotely on a cluster, or a local deployment. If you require more details about the Studio and how to deploy it, see here.
🐍 Python SDK
The Geospatial Studio python SDK enables users to interface with the Geospatial Studio APIs in a more natural manner.
Prerequisites
- Access Geospatial Studio deployment (this could be local, or remotely on a deployed cluster).
Installation
-
Prepare a python 3.11+ environment, however you normally do that (e.g. conda, pyenv, poetry, etc.) and activate this new environment.
-
Install the Geospatial Studio SDK:
python -m pip install --upgrade pip pip install geostudio
Authentication
Authentication to the Geospatial Studio is handled by a redirect in the UI, but for programmatic access (from the SDK, for example), the user will need to create an API key. This is can be easily done through the UI.
-
Go to the Geospatial Studio UI page and navigate to the
Manage your API keyslink. -
This should pop-up a window where you can generate, access and delete your api keys. NB: every user is limited to a maximum of two activate api keys at any one time.
-
When you have generated an api key and you intend to use it for authentication through the python SDK, the best practice would be to store the API key and geostudio ui base url in a credentials file locally, for example in /User/bob/.geostudio_config_file. You can do this by:
echo "GEOSTUDIO_API_KEY=<paste_api_key_here>" > .geostudio_config_file echo "BASE_STUDIO_UI_URL=<paste_ui_base_url_here>" >> .geostudio_config_file
Example usage of the SDK
In your Python Interpreter:
from geostudio import Client
# change the value of geostudio_config_file below to the path of the file you saved your config in
gfm_client = Client(geostudio_config_file=".geostudio_config_file")
# list available models in the studio
models = gfm_client.list_models()
print(models)
# list available tunes
tunes = gfm_client.list_tunes()
print(tunes)
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 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 geostudio-0.1.1a1.tar.gz.
File metadata
- Download URL: geostudio-0.1.1a1.tar.gz
- Upload date:
- Size: 34.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cd79285c48fdf8ec1893f8bfb3dbfcf2f23745bb21a59e0c51c4806eaa3cbf2
|
|
| MD5 |
19aa2a10f2af868863fdf829402cfb6f
|
|
| BLAKE2b-256 |
27fd730e9412acdb42c91d4272c97b32a97119a8019b2e6ee50d8304900512bc
|
File details
Details for the file geostudio-0.1.1a1-py3-none-any.whl.
File metadata
- Download URL: geostudio-0.1.1a1-py3-none-any.whl
- Upload date:
- Size: 39.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80783a2ddafcb43ac808791ee4194280116dcbf0f79bdc4000b1e012b9935f74
|
|
| MD5 |
1b0e3a0b6fd5ef4c489d209313ff7d40
|
|
| BLAKE2b-256 |
b39ab768d411191203b4aab90786b54f0f6bfd70b4ed33258700c4e8a8351424
|