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.

Source Distribution

minerva-lib-0.0.5.tar.gz (46.9 kB view hashes)

Uploaded source

Built Distributions

minerva_lib-0.0.5-cp38-cp38-win_amd64.whl (40.0 kB view hashes)

Uploaded cp38

minerva_lib-0.0.5-cp38-cp38-win32.whl (39.4 kB view hashes)

Uploaded cp38

minerva_lib-0.0.5-cp37-cp37m-win_amd64.whl (40.0 kB view hashes)

Uploaded cp37

minerva_lib-0.0.5-cp37-cp37m-win32.whl (39.4 kB view hashes)

Uploaded cp37

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page