Toolbox for accessing ASAM ODS servers using the HTTP API
Project description
ASAM ODSBox
The ODSBox is a lightweight Python wrapper on the standardized ASAM ODS REST API. Using intuitive JAQuel queries and pandas.DataFrames the ODSBox makes dealing with ASAM ODS data in Python more fun.
from odsbox.con_i import ConI
with ConI(url="https://MY_SERVER/api", auth=("sa", "sa")) as con_i:
measurements = con_i.query_data(
{
"AoMeasurement": {"name": {"$like": "*"}},
"$attributes": {"name": 1, "id": 1},
"$options": {"$rowlimit": 50},
}
)
print(measurements)
See documentation for overview.
Communication
The ASAM ODS server is called using HTTP calls defined by the ASAM ODS standard.
The messages are encode/decoded using ASAM ODS protobuf message definitions provided at
ASAM-ODS-Interfaces. As content type application/x-asamods+protobuf
is used.
JAQuel Queries
JAQuel allows you to query your data in a simple and intuitive way inspired by MongoDB Query Language (MQL). The definition of query expression as JSON easily integrates with the Python language – a win-win situation.
Installation
ODSBox is available on.
github | https://github.com/peak-solution/odsbox/ |
PyPI | https://pypi.org/project/odsbox/ |
github docs | https://peak-solution.github.io/odsbox |
# access ASAM ODS server
pip install odsbox
# access ASAM ODS EXD-API plugin
pip install odsbox[exd-data]
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
Built Distribution
Hashes for odsbox-0.2.0rc102.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb98b879bcae61bb1ebec01e5a48188565b044c413dbe923c51f93ee0e25c6f0 |
|
MD5 | 9cffe737921c2d903e37cd47fc26dc15 |
|
BLAKE2b-256 | e9e7ab273ebc87f83fe759e78efef1714355a34c6b3bff8226b37181fa0a182a |