Skip to main content

A Geospatial Exploration and Orchestration Studio (GEOStudio) SDK for Python.

Project description

Geospatial Studio banner

🌍 GEOStudio Python SDK

License
Distribution

PyPI - Version PyPI - Downloads

TerraStackAI
Built With

Studio Documentation

🚀 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

  1. Prepare a python 3.11+ environment, however you normally do that (e.g. conda, pyenv, poetry, etc.) and activate this new environment.

  2. 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.

  1. Go to the Geospatial Studio UI page and navigate to the Manage your API keys link.

  2. 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.

Location of API key link

  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geostudio-0.1.4a1.tar.gz (34.2 kB view details)

Uploaded Source

Built Distribution

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

geostudio-0.1.4a1-py3-none-any.whl (39.0 kB view details)

Uploaded Python 3

File details

Details for the file geostudio-0.1.4a1.tar.gz.

File metadata

  • Download URL: geostudio-0.1.4a1.tar.gz
  • Upload date:
  • Size: 34.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.16

File hashes

Hashes for geostudio-0.1.4a1.tar.gz
Algorithm Hash digest
SHA256 30fff37be918fb267087ee83c0caec65c0c868f7c0faf73a57f42f6fa51cdb95
MD5 81b1ebf146f933c95d46ddbdd9795c8a
BLAKE2b-256 b6a9a93a98c6ef8e201ab0ac7900e541c8dd2fa86ea15582351744b46f499fc0

See more details on using hashes here.

File details

Details for the file geostudio-0.1.4a1-py3-none-any.whl.

File metadata

  • Download URL: geostudio-0.1.4a1-py3-none-any.whl
  • Upload date:
  • Size: 39.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.16

File hashes

Hashes for geostudio-0.1.4a1-py3-none-any.whl
Algorithm Hash digest
SHA256 f13e021ebc458396e4c988efefbef28879a5b0de5c7d6df3f8afd120656fe8ef
MD5 3583dea46ac2a7cac98eae7f322e0edb
BLAKE2b-256 0d4f107cab3898ca0d5334cb7dd740259e3ba37633cb379fb3b51c6dab43b987

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