Skip to main content

Open source component of the Maximo Asset Manager pipeline

Project description

IoT Functions

A companion package to IBM Watson IoT Platform Analytics containing sample functions and base classes from which to derive custom functions.

Getting Started

These instructions will get you up and running in your local environment or in Watson Studio for development and testing purposes.

Prerequisites

  • python 3.X (https://www.anaconda.com/distribution/)
  • future (pip install future)
  • pandas (pip install pandas)
  • sqlalchemy (pip install sqlalchemy)
  • ibm_db_sa (pip install ibm_db_sa)
  • ibm_cos_sdk (pip install ibm-cos-sdk)
  • lxml (pip install lxml)

Build and Shipment

Caveat

  • Shipping to pypi or test-pypi requires a token
  • Version numbers can never be reused.
  1. Build a distribution first
    python3 setup.py sdist bdist_wheel
    
  2. Upload to test-pypi
    twine upload --verbose --repository testpypi dist/*
    
  3. When everything appears to be okay upload to pypi
    twine upload --verbose --repository pypi dist/*
    

Installing

  1. Create a virtual environment
    python3 -m venv env
    
  2. Activate virtual environment
    source env/bin/activate
    
  3. Install in your local environment from GitHub
    pip install git+git://github.com/ibm-watson-iot/functions@production --upgrade 
    

To install in IBM Watson Studio from another Jupyter notebook:

!pip install git+git://github.com/ibm-watson-iot/functions.git@production --upgrade

Test for successful install:

import iotfunctions as fn
print(fn.__version__) 

Changelog

Keep up to date with the latest changes.

Further information

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

iotfunctions-8.3.1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

iotfunctions-8.3.1-py3-none-any.whl (248.4 kB view details)

Uploaded Python 3

File details

Details for the file iotfunctions-8.3.1.tar.gz.

File metadata

  • Download URL: iotfunctions-8.3.1.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.7

File hashes

Hashes for iotfunctions-8.3.1.tar.gz
Algorithm Hash digest
SHA256 9724ffa3f91b6a7cb8296520c5b745e9872b40482515f5d883cad0cf23124de4
MD5 9e5122e79a7715d02336eae823014ee1
BLAKE2b-256 359b06ef225840d71ed87facb2725e1a928419f117893c4552db76be3b88be68

See more details on using hashes here.

File details

Details for the file iotfunctions-8.3.1-py3-none-any.whl.

File metadata

  • Download URL: iotfunctions-8.3.1-py3-none-any.whl
  • Upload date:
  • Size: 248.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.7

File hashes

Hashes for iotfunctions-8.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 02a16d4dc0674885bb0a78d78ddda5e538df6be12526786fbfec1ae3ff8ae15f
MD5 deea49c988c096bf45ddbdabe077cc08
BLAKE2b-256 f7b587c52fb57c025bf16f01cc0170841e569a38d69078d7e770cd28a85d9e73

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