AIoT Studio
AIoT Studio is the official library to develop datasources, notebooks and dependency sets for mnubo's AIoT Studio.
Installation
Requirements
- Python 2.7 or Python 3.4 and up
requestspandas≥ 0.20numpy
$ pip install aiot-studio
Simple datasource usage
from aiotstudio.search import to_pandas
from aiotstudio.logging import log
def execute(parameters):
log.info("Hello aiot-studio")
result = to_pandas({
"from": "event",
"select": [{"count": "*"}]
})
return result
Configuration
The library needs to be configured with your mnubo API credentials. The credentials can be shared as follows (by decreasing order of priority):
- Environment variables:
MNUBO_CLIENT_ID,MNUBO_CLIENT_SECRET,MNUBO_API_URL - Local config file:
application.confat the root of the project or anywhere indicated by theMNUBO_CONFIG_FILEenvironment variable - Global config file:
~/.settings/mnubo/application.conf(orC:\Users\<username>\.settings\mnubo\application.confon Windows)
For the last two options, the configuration file should look like this:
[DEFAULT]
mnubo_client_id = {API_CLIENT_ID}
mnubo_client_secret = {API_CLIENT_SECRET}
mnubo_api_url = https://prod.api.mnubo.com
Available package
searchblobstorelogging
Notes:
- All "search" methods expect a MQL query as described in the search API documentation
- Blob store methods are only available when the code runs inside mnubo's architecture, using it locally would throw a
FeatureUnavailableError
Metadata
Release files for aiot-studio 1.1.153
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aiot-studio-1.1.153.tar.gz | 7.5 kB | Without provenance | Details |
Release files / aiot-studio-1.1.153.tar.gz
| Download URL | aiot-studio-1.1.153.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65c1511558564cfc3d8ed09817f75629bfa7cbfa2f40212b716441d0d040a35a
|
|
BLAKE2b-256 checksum How to use checksums |
37a2e4347c27b3d045ad7ec2d9edc5ec681518594e28a2fefe52520be0a32dca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6
|
Security for aiot-studio 1.1.153
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.