Skip to main content

python SDK for R2CLOUD

Project description

About

r2cloud python sdk makes it easier for you to work with your r2cloud server using the python programming language. The SDK uses an object-oriented design and tries to look like r2cloud API.

Installation

with pip3

pip install r2cloud

from repo

make install
make doc # for generate documentation

Quick start

import r2cloud.api

# init api
station = r2cloud.api('https://192.168.0.10')
# login to r2cloud
station.login("myemail@example.org", "my_password")

# get all observations
obs = station.observationList()

# filter observation of "NOAA 19", "NOAA 18" and "NOAA 15"
obs = r2cloud.tools.common.filterSat(obs, ["NOAA 19", "NOAA 18", "NOAA 15"])

# filter observation with data only
obs = r2cloud.tools.common.filterHasData(obs)

# print all filtred observations ids
for ob in obs:
    print("Observation " + str(ob.id) + " by " + ob.name)

more examples you can find in /examples dir on github

Examples Screenshots

    

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

r2cloud-0.0.1.tar.gz (7.2 kB view hashes)

Uploaded Source

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