Skip to main content

Package for simplifying interactions with aws and Docker for InsideDesk collection developers

Project description

moonraker

Library for interacting with AWS for InsideDesk collection developers

See Boto3 Documentation for credential configuration

This is done automatically in production

Basic Usage

import moonraker

# AWS credentials must be setup in ~/.aws/credentials 
# or using environment variables

# Get client from environment variables
moonraker_client = moonraker.Client.from_env()

# Or manually generate Client instance for testing
moonraker_client = moonraker.Client(
    batch_input_path="s3://bucket/config.json",
    collection_output_path="s3://bucket/collection.json",
    artifact_output_path="s3://bucket/output/",
)

# Get batch dictionary
moonraker_client.get_batch()

# Put artifact to S3
local_path = "/tmp/image.png"

# ...
# Download file to local_path
# ...

filename = moonraker_client.put_artifact(local_path)


# Put collection to S3
collection = {...}
moonraker_client.put_collection_file(collection)


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 moonraker, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size moonraker-0.2.0.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page