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.3.tar.gz (34.7 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.3-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: geostudio-0.1.3.tar.gz
  • Upload date:
  • Size: 34.7 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.3.tar.gz
Algorithm Hash digest
SHA256 bbb95da9755f956381fd85616705fc5b5b58fc596d8dd66265c79be40d844c34
MD5 8e11fde819719739faae26c1cdaca076
BLAKE2b-256 75d272e135bd6532b44e3261631724364d5571e63dd4e40f72f7691081e510f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: geostudio-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 39.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 57ebc000054df790e871803b52ee44688800044ecde334a8682d559eeb3bd19f
MD5 86ec32a8030ee034bc1a60bcbdbf4419
BLAKE2b-256 2c9de9293e4a30d89c3a17b5889b70e46eb2c5071f11bfb4d11839ba7ef26323

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