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.2.tar.gz (34.5 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.2-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

Details for the file geostudio-0.1.2.tar.gz.

File metadata

  • Download URL: geostudio-0.1.2.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

Hashes for geostudio-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6e9ca2deece3d3bafbd79af34e582d292775ba3f86fa95e53d4905a5ebfa6511
MD5 d3f60ace840bc466ad5155306f387d72
BLAKE2b-256 7a358a6cb6d403d89a31b7009b4f2597e289faa3b67cd2ae804ee3f3f9d85ec4

See more details on using hashes here.

File details

Details for the file geostudio-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: geostudio-0.1.2-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

Hashes for geostudio-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ecc6f9a34f5faad3f14a61a033801f30c00b6a9578295b5fdd6e6023361feb62
MD5 0c0ed977fcf85125165630285e240776
BLAKE2b-256 97e20646a30d08a3ba81c1ece8eeef9b137a3abca28b868171b3ae4d2894da3d

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