Skip to main content

No project description provided

Project description

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
  • requests
  • pandas ≥ 0.20
  • numpy

$ 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.conf at the root of the project or anywhere indicated by the MNUBO_CONFIG_FILE environment variable
  • Global config file: ~/.settings/mnubo/application.conf (or C:\Users\<username>\.settings\mnubo\application.conf on 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

  • search
  • blobstore
  • logging

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

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

aiot-studio-1.1.153.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file aiot-studio-1.1.153.tar.gz.

File metadata

  • Download URL: aiot-studio-1.1.153.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for aiot-studio-1.1.153.tar.gz
Algorithm Hash digest
SHA256 65c1511558564cfc3d8ed09817f75629bfa7cbfa2f40212b716441d0d040a35a
MD5 a5bef8a81e7532dde2f22709edd471a5
BLAKE2b-256 37a2e4347c27b3d045ad7ec2d9edc5ec681518594e28a2fefe52520be0a32dca

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