vikinganalytics / mvg

Repository for python library supporting Viking Analytics Multiviz Engine API
Apache License 2.0
4 stars 2 forks source link
analytics python vibration vibration-api

MVG: MultiViz Analytics Engine Client Library

Package version

PyPI - Python Version

The MultiViz Analytics EnGine ('MVG') is a Python library that enables users to:

Documentation

Usage of the library and several examples can be found here.

Installation

To install the library, use the following pip command:

pip install va-mvg

Basic Usage

The basic usage involves three steps:

  1. Create a session by instantiating an MVG object. A session is a combination of an endpoint (server address) and a token. The token, provided by Viking Analytics, is used for both authentication and authorization.

  2. Call the API functions.

  3. Handle exceptions. Errors are propagated via exceptions, and it is the responsibility of the calling application to handle these.

Important Concepts

Version Handling of MVG and API Version

The version string of the MVG API on the server side has the form v{MAJOR}.{MINOR}.{PATCH}. An increase in MAJOR signifies an incompatible change that requires an upgrade of mvg. An increase in MINOR does not require an upgrade but may not allow access to new features of the API. Please refer to the mvg documentation

and the example "examples/0-check_version.ipynb" for details.

Additional Documentation

Examples

In the examples section, there are several Jupyter notebooks with Python code demonstrating how to use the library for interfacing with the Viking Analytics Engine. You can download these notebooks by clicking on the "View Page Source" link located at the top left of the examples. Be sure to change the extension to .ipynb before running them.

Analysis Classes (beta)

Analysis classes provide a simple and powerful way to parse and inspect the results from analysis calls for our features. Apart from converting the results to dataframes, they can be used in an interactive shell to inspect the results from analysis calls.

In the "analysis_class_examples" directory, there are scripts showing how to use the analysis classes.

Maintainer

The mvg library is maintained by Viking Analytics AB. Visit their website at https://www.vikinganalytics.se.

Bug Reporting, Pull Requests, and Support

For bug reporting, pull requests, and support, please use the issue tracking and pull requests on the mvg GitHub page: https://github.com/vikinganalytics/mvg.

License

The mvg library is licensed under the Apache License 2.0. See the LICENSE file for details.