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
import r2cloud.tools.common

# 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.3.tar.gz (7.2 kB view hashes)

Uploaded source

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