A Python package for the fetching (and some processing) of eCallisto data via the eCallisto API.
Project description
Ecallisto NG
Ecallisto NG is a very basic and simple package to access the Ecallisto API.
It is written in Python 3.7 and uses the requests library and accesses the Ecallisto API at https://v000792.fhnw.ch/api/data
Installation
Clone this repository and install it with pip:
pip install -e .
PYPI
This package is also available on PYPI: https://pypi.org/project/ecallisto-ng/
Usage
Data fetching
from ecallisto_ng.data_fetching.get_data import get_data
parameters = {
"instrument_name": "austria_unigraz_01",
"start_datetime": "2021-03-01 06:30:00",
"end_datetime": "2021-03-07 23:30:00",
"timebucket": "15m",
"agg_function": "MAX",
}
df = get_data(parameters)
Plotting
We offer some basic plotting functions.
from ecallisto_ng.plotting.plot import fill_missing_timesteps_with_nan, plot_spectogram
df = fill_missing_timesteps_with_nan(df)
plot_spectogram(df, parameters["instrument_name"], parameters["start_datetime"], parameters["end_datetime"])
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
ecallisto_ng-0.0.2.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file ecallisto_ng-0.0.2.tar.gz
.
File metadata
- Download URL: ecallisto_ng-0.0.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96016a409b4c388e4e148cc1e26f6a80263210011fa53effb9eab3c4cf0b331c |
|
MD5 | 349208a9eb6348e19ee4d5cceae4288f |
|
BLAKE2b-256 | 6b3401383aa7db7c89117d85ce19b423c6986615bcce10daef259b748f2686ca |
File details
Details for the file ecallisto_ng-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ecallisto_ng-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ed306a55f9a8b42fe0f80802f19108e9178666b6d55908bd680a82c64c6cde7 |
|
MD5 | cf033e2cf23a281ad592257f02b9ac38 |
|
BLAKE2b-256 | 844cfdba2436a16996d50548e0c1230670163be3f11b6549927c966a0e0cd52a |