Skip to main content

A cli for managing data and user access for the cloud application rastless

Project description

Rastless-CLI

A cli for managing data and user access for the cloud application rastless

Table of Content

Installation

Requires: Python >=3.8, <4.0

$ pip install rastless-cli

RastLess has to be configured before you can check if everything works. Make sure that your aws account is configured and has access to DynamoDb and S3.

You can check if everything works correctly by running:

$ rastless check-aws-connection

If it is not working, make sure to configure the aws connection by configuring the aws cli. You need an Access ID and a Secret ID from aws to configure. Please check the official instructions for further help.

Developer Installation
$ pip install poetry
$ git clone https://github.com/EomapCompany/rastless-cli
$ cd rastless-cli
$ poetry install

Run tests

cd tests
poetry run pytest

Running the CLI

After installation you can run the ClI by using:

$ rastless --help

You can decide if you want to upload data to the production or development environment. By using the "dev" flag you upload it to development, without to production

# Example development
$ rastless --dev list-layers

# Example production
$ rastless list-layers

Commands Overview

Commands
add-colormap Add a SLD file
add-permission Add a role to one or multiple layers
check-aws-connection Check if cli can connect to aws
create-layer Create layer
create-timestep Create timestep entry and upload layer to S3 bucket
delete-colormap Remove a SLD file
delete-layer Delete a layer with all timestep entries
delete-permission Delete one or multiple permissions
list-layers List all layers

Accomplishing a running system

1. Check if you have access to the system

$ rastless check-aws-connection

2. Create a new layer

  • All inputs are strings. You have to take care, that the element exists in the database e.g. the colormap name.
  • Multiple permissions can be set by using multiple -pe flags
$ rastless create-layer -cl hypos -pr tur -t Turbidity -cm log75_C2S8_32bit -u FTU -b <rgb uuid> -d "Some description" -r 1 -pe user#marcel -pe role#hypos:full-access

It will return a new uuid which you need to store, in order to upload timesteps to the particular layer

3. Upload Timesteps for layer

$ rastless create-timestep -d 2020-01-01T15:00:00 -s SENT2 -l <layer uuid> -t daily -p deflate

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

rastless-cli-0.2.3.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

rastless_cli-0.2.3-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file rastless-cli-0.2.3.tar.gz.

File metadata

  • Download URL: rastless-cli-0.2.3.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-39-generic

File hashes

Hashes for rastless-cli-0.2.3.tar.gz
Algorithm Hash digest
SHA256 3f23f22f6d38d8676ecf07777b4110aecc63c7caf463c5ce8e5c213fdcd98e5c
MD5 ca3036c4fb66225fa18ea7eb77f397e9
BLAKE2b-256 f613c703b109f11ec7c429801b026d1bed93b3d81e1afad5b687470105ffc8ce

See more details on using hashes here.

File details

Details for the file rastless_cli-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: rastless_cli-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-39-generic

File hashes

Hashes for rastless_cli-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dc46f42dfcc344cf5c398b70b1709dc225e863085d20f79524a2f4f0e03b9052
MD5 14b5f6dcd22f41e7d0464fca7c900972
BLAKE2b-256 596104b3430e570c4eb331428c4af05daab5d23c2e5705665e83f7d8c5b75620

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page