Metadata-Version: 2.1
Name: iotfunctions
Version: 8.9.0
Summary: Open source component of the Maximo Asset Manager pipeline
Home-page: https://github.com/ibm-watson-iot/iotfunctions
Author: Sivakumar Rajendren
Author-email: rsiva@us.ibm.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: dill (==0.3.2)
Requires-Dist: ibm-watson-machine-learning (==1.0.227)
Requires-Dist: ibm-db (==3.1.2)
Requires-Dist: ibm-db-sa (==0.3.8)
Requires-Dist: lightgbm (==3.3.2)
Requires-Dist: lxml (==4.9.1)
Requires-Dist: nose2 (==0.6.0)
Requires-Dist: numpy (==1.22.4)
Requires-Dist: pandas (==1.3.4)
Requires-Dist: protobuf (==3.20.2)
Requires-Dist: psycopg2-binary (==2.8.6)
Requires-Dist: pyarrow (==5.0.0)
Requires-Dist: pyod (==1.0.0)
Requires-Dist: requests (==2.27.1)
Requires-Dist: ruptures (==1.1.5)
Requires-Dist: scikit-image (==0.18.3)
Requires-Dist: scikit-learn (==1.0.2)
Requires-Dist: scipy (==1.7.3)
Requires-Dist: sqlalchemy (==1.4.27)
Requires-Dist: statsmodels (==0.12.2)
Requires-Dist: stumpy (==1.9.2)
Requires-Dist: tabulate (==0.8.9)
Requires-Dist: torch (==1.10.2)
Requires-Dist: urllib3 (==1.26.7)
Provides-Extra: kafka
Requires-Dist: confluent-kafka (==1.6.0) ; extra == 'kafka'


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

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

Test for successful install:

```~~~python3
import iotfunctions as fn
print(fn.__version__) 
```



### Changelog

Keep up to date with the latest [changes](https://github.com/ibm-watson-iot/functions/wiki/Change-Log).

### Further information 

+ [IBM Knowledge Center - IoT Platform Analytics](https://www.ibm.com/support/knowledgecenter/SSQP8H/iot/analytics/as_overview.html)
+ [Sample Notebook](https://www.ibm.com/support/knowledgecenter/SSQP8H/iot/analytics/as_notebook_references.html) 




