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.5.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.5-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: geostudio-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 f84bfeba981a06bd1d2cc9b762c7ede5abbc350dfc6103fccb8ab7d7ee082841
MD5 46e703306193cfcaf537d9e4e6233f31
BLAKE2b-256 b4f9abc349081cbb03db9d73d52e43977b7018f18e6c4b47f113462a5b7aa70b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: geostudio-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 39.2 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 099bdcb89c1e1b93f0a2713b5d06a2efcdd8d1bec99b0ccebdc84f85f27da8a0
MD5 9a9f94caa16837f002e64df20df8904e
BLAKE2b-256 718d8b677dcf02be3603e711cc4e19e6a2e2dedec96a8a9e01d98b998c0f236a

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