Skip to main content

No project description provided

Project description

AIoT Studio

AIoT Studio is the official library to develop datasources and dependency sets for mnubo's AIoT Studio.



  • Python 2.7 or Python 3.4 and up
  • requests
  • pandas ≥ 0.20
  • numpy

$ pip install aiot-studio

Simple datasource usage

from aiotstudio.datasource import search_df, log

def execute(parameters):"Hello aiot-studio")
    result = search_df({
        "from": "event",
        "select": [{"count": "*"}]
    return result


The library needs to be configured with your mnubo API credentials. The credentials can be shared as follows (by decreasing order of priority):

  • 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:

mnubo_client_id = {API_CLIENT_ID}
mnubo_client_secret = {API_CLIENT_SECRET}
mnubo_api_url =

Available methods

  • search(query): returns the search result as a JSON
  • search_df(query): returns the search result as a Pandas DataFrame
  • log: Python logger: will appear in the "Logs" app, use, log.warning or log.error instead of print
  • blob_store_bucket_names(): returns the bucket names available
  • blob_store_fetch(bucket_name, object_name): grabs the object from the bucket


  • 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.

Files for aiot-studio, version 1.1.13
Filename, size & hash File type Python version Upload date
aiot-studio-1.1.13.tar.gz (6.3 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page