Skip to main content

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.9 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


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.4.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

ecallisto_ng-0.0.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file ecallisto_ng-0.0.4.tar.gz.

File metadata

  • Download URL: ecallisto_ng-0.0.4.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for ecallisto_ng-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4aa46f82becbc32af80120a6b76a0a9da580da9d33df6bb4b0db49ff033cb0d8
MD5 5a71f81e761ca5bdb30b7c1e6e1933e3
BLAKE2b-256 fae2480241293005cabdd9435e8dada3da82cd6e0101f9b658de3d5402fb31f7

See more details on using hashes here.

File details

Details for the file ecallisto_ng-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ecallisto_ng-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 62e07df916fb9bf11c8ff7fbe8c43ae878424001e53e6fbd1e3dbea7918ca678
MD5 6f58c92f68021b2cbb8132ea9d963a84
BLAKE2b-256 2fcf223848d76db635eb5e136b92c2cd218b5b174dab636c3c88bfefc5669ca3

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