Giter Site home page Giter Site logo

ibmstreams / pypi.streamsx.avro Goto Github PK

View Code? Open in Web Editor NEW
0.0 9.0 1.0 83 KB

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.

Home Page: http://ibmstreams.github.io/pypi.streamsx.avro/

License: Apache License 2.0

Makefile 18.08% Python 81.92%
pypi python python-packages

pypi.streamsx.avro's Introduction

Python streamsx.avro package

This exposes SPL operators in the com.ibm.streamsx.avro 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.avro

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:

Version update

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

  • ./package/docs/source/conf.py
  • ./package/streamsx/avro/__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/avro/__init__.py
  • ./package/DESC.txt

Test

When using local build (e.g. not forcing remote build), then you need to specifiy the toolkit location, for example:

export STREAMSX_AVRO_TOOLKIT=<PATH_TO_AVRO_TOOLKIT>/com.ibm.streamsx.avro

Streaming Analytics service

Package can be tested with TopologyTester using the Streaming Analytics service.

Run the test with:

ant test-sas

or

cd package
python3 -u -m unittest streamsx.avro.tests.test_avro.TestStreamingAnalytics

Remote build

For using the toolkit from the build service (force_remote_build) run the test with:

Run the test with:

ant test-sas-remote

or

cd package
python3 -u -m unittest streamsx.avro.tests.test_avro.TestStreamingAnalyticsRemote

Local Streams instance

Package can be tested with TopologyTester using a local and running Streams domain. Make sure that the streams environment is set, the domain and instance is running and the environment variables: STREAMS_USERNAME STREAMS_PASSWORD are setup.

Run the test with:

ant test

or

cd package
python3 -u -m unittest streamsx.avro.tests.test_avro.TestDistributed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.