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.
- Build a distribution first
python3 setup.py sdist bdist_wheel - Upload to test-pypi
twine upload --verbose --repository testpypi dist/* - When everything appears to be okay upload to pypi
twine upload --verbose --repository pypi dist/*
Installing
- Create a virtual environment
python3 -m venv env - Activate virtual environment
source env/bin/activate - Install in your local environment from GitHub
Replace 'XXX' by the version of your IBM Watson IoT Platform Analytics installation like, for example, '8.10.x' or '8.11.x'pip install git+git://github.com/ibm-watson-iot/functions@XXX --upgrade
To install in IBM Watson Studio from another Jupyter notebook:
!pip install git+git://github.com/ibm-watson-iot/functions.git@XXX --upgrade
Replace 'XXX' by the version of your IBM Watson IoT Platform Analytics installation like, for example, '8.10.x' or '8.11.x'
Test for successful install:
import iotfunctions as fn
print(fn.__version__)
Changelog
Keep up to date with the latest changes.
Further information
Metadata
Release files for iotfunctions 9.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iotfunctions-9.0.0-py3-none-any.whl | Python 3 | none | any | Details for iotfunctions-9.0.0-py3-none-any.whl |
Release files / iotfunctions-9.0.0-py3-none-any.whl
| Download URL | iotfunctions-9.0.0-py3-none-any.whl |
|---|---|
| Size | 253.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09a68a8400e122fc7edf0e12b7b613f3276c7596ff4548f58e75a50de305d21e
|
|
BLAKE2b-256 checksum How to use checksums |
fdad1be84cb0add77c69221e689df9bfac89177c95283581a212f3f3b72e8234
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Security for iotfunctions 9.0.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.