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
Release history Release notifications | RSS feed
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 details)
File details
Details for the file r2cloud-0.0.3.tar.gz
.
File metadata
- Download URL: r2cloud-0.0.3.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b0d3427c2a59edf691c64a9af6787d01a94d37b103d4b9bcabc1de118537b21 |
|
MD5 | 738c17e50f5e4a0167063b2738fdbd4b |
|
BLAKE2b-256 | 5ca6e9779a647349fb58f27ec58a56f682b293647fdd2de9ec12c003a8c8963f |