Skip to main content

Minerva Python library

Project description

minerva-lib-python

Minerva Python Library contains common code for the Minerva suite, such as:

  • High performance server-side rendering code implemented in native C code
  • Minerva client for making requests to Minerva API
  • High level utility classes for importing and exporting images

Using the Minerva API

Authentication

from minerva_lib.client import MinervaClient

client = MinervaClient(endpoint="MINERVA_BASE_URL", region="AWS_REGION", cognito_client_id="CLIENT_ID")
client.authenticate(username="USERNAME", password="PASSWORD")

Fetch raw image tiles

# Credentials will be valid for 1 hour
credentials, bucket, prefix = client.get_image_credentials("IMAGE_UUID")

# Returns a bytes object
res = client.get_raw_tile(credentials, bucket, "IMAGE_UUID", x=0, y=0, z=0, t=0, c=0, level=0)

Project details


Download files

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

Files for minerva-lib, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size minerva_lib-0.0.5-cp37-cp37m-macosx_10_9_x86_64.whl (39.0 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size minerva_lib-0.0.5-cp37-cp37m-manylinux1_i686.whl (49.1 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size minerva_lib-0.0.5-cp37-cp37m-manylinux1_x86_64.whl (45.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size minerva_lib-0.0.5-cp37-cp37m-manylinux2010_i686.whl (49.1 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size minerva_lib-0.0.5-cp37-cp37m-manylinux2010_x86_64.whl (45.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size minerva_lib-0.0.5-cp37-cp37m-win32.whl (39.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size minerva_lib-0.0.5-cp37-cp37m-win_amd64.whl (40.0 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size minerva_lib-0.0.5-cp38-cp38-macosx_10_9_x86_64.whl (39.0 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size minerva_lib-0.0.5-cp38-cp38-manylinux1_i686.whl (49.1 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size minerva_lib-0.0.5-cp38-cp38-manylinux1_x86_64.whl (45.4 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size minerva_lib-0.0.5-cp38-cp38-manylinux2010_i686.whl (49.1 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size minerva_lib-0.0.5-cp38-cp38-manylinux2010_x86_64.whl (45.4 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size minerva_lib-0.0.5-cp38-cp38-win32.whl (39.4 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size minerva_lib-0.0.5-cp38-cp38-win_amd64.whl (40.0 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size minerva-lib-0.0.5.tar.gz (46.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page