Python API Wrapper for Measurement Data
Project description
MeaPy
Python API Wrapper for Measurement Data
Vision
MeaPy wants to be a easy-to-use and conformable API for working with measurement data in den Big Test Data environment.
Getting Started
pip install meapy
Usage
from meapy import MeaPy, MeasurementList, LoadingConfig
# "Basic " is the content if the HTTP Authorization-Header. In this example it is the Basic Authentication Header for user:password
mp = MeaPy("http://madam-docker.int.kistler.com:8081/", "Basic dXNlcjpwYXNzd29yZA==")
# direct search (by default limited to 100 results)
result = mp.search("test")
# result is a list of meapy.Measurement
# search and iteration over the whole result set
ml = MeasurementList(mp)
count = 0
for mea in ml.items('Station.Id="d4f1ad55-72d5-403c-81b8-73b2942b58f4"'):
count+=1
print(count)
# load a measurement
config = LoadingConfig()
config.withSignals(['time'])
signals = mp.load(result[0], config)
# signals is a list of meapy.SignalData that contains the information for the requested channels
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
meapy-0.0.6.tar.gz
(4.3 kB
view hashes)
Built Distribution
meapy-0.0.6-py3-none-any.whl
(5.2 kB
view hashes)