An open API service indexing awesome lists of open source software.

https://github.com/ibmstreams/pypi.streamsx.eventstore

This is a step in allowing natural use of Streams for a Python developer. A project that will be registered with PyPi to allow 'pip install' of Python packages that support Python developers interacting with IBM Streams.
https://github.com/ibmstreams/pypi.streamsx.eventstore

pypi python python-packages

Last synced: over 1 year ago
JSON representation

This is a step in allowing natural use of Streams for a Python developer. A project that will be registered with PyPi to allow 'pip install' of Python packages that support Python developers interacting with IBM Streams.

Awesome Lists containing this project

README

          

# Python streamsx.eventstore package

This exposes SPL operators in the `com.ibm.streamsx.eventstore` toolkit as Python methods.

Package is organized using standard packaging to upload to PyPi.

The package is uploaded to PyPi in the standard way:
```
cd package
python setup.py sdist bdist_wheel upload -r pypi
```
Note: This is done using the `ibmstreams` account at pypi.org and requires `.pypirc` file containing the credentials in your home directory.

Package details: https://pypi.python.org/pypi/streamsx.eventstore

Documentation is using Sphinx and can be built locally using:
```
cd package/docs
make html
```

or

ant doc

and viewed using
```
firefox package/docs/build/html/index.html
```

The documentation is also setup at `readthedocs.io`.

Documentation links:
* http://streamsxeventstore.readthedocs.io

## Version update

To change the version information of the Python package, edit following files:

- ./package/docs/source/conf.py
- ./package/streamsx/eventstore/\_\_init\_\_.py

When the development status changes, edit the *classifiers* in

- ./package/setup.py

When the documented sample must be changed, change it here:

- ./package/streamsx/eventstore/\_\_init\_\_.py
- ./package/DESC.txt

## Test

Package can be tested with TopologyTester using a Streams instance and Db2 Event Store database.

* toolkit path is given by `STREAMSX_EVENTSTORE_TOOLKIT` environment variable
* connection to event store is given by `EVENTSTORE_CONNECTION` environment variable (IP address and port number needed to connect to IBM Db2 Event Store)

```
cd package
python3 -u -m unittest streamsx.eventstore.tests.test_eventstore.TestDistributed
```

or

ant test