{"id":21482767,"url":"https://github.com/ibmstreams/pypi.streamsx.eventstreams","last_synced_at":"2025-06-20T15:36:18.396Z","repository":{"id":57471787,"uuid":"169049597","full_name":"IBMStreams/pypi.streamsx.eventstreams","owner":"IBMStreams","description":"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.","archived":false,"fork":false,"pushed_at":"2020-07-01T13:20:25.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"develop","last_synced_at":"2025-05-19T10:21:20.442Z","etag":null,"topics":["pypi","python","python-packages"],"latest_commit_sha":null,"homepage":"https://ibmstreams.github.io/pypi.streamsx.eventstreams/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IBMStreams.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-04T08:43:10.000Z","updated_at":"2020-06-18T14:55:29.000Z","dependencies_parsed_at":"2022-08-30T13:51:24.845Z","dependency_job_id":null,"html_url":"https://github.com/IBMStreams/pypi.streamsx.eventstreams","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/IBMStreams/pypi.streamsx.eventstreams","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBMStreams%2Fpypi.streamsx.eventstreams","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBMStreams%2Fpypi.streamsx.eventstreams/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBMStreams%2Fpypi.streamsx.eventstreams/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBMStreams%2Fpypi.streamsx.eventstreams/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IBMStreams","download_url":"https://codeload.github.com/IBMStreams/pypi.streamsx.eventstreams/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBMStreams%2Fpypi.streamsx.eventstreams/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260971681,"owners_count":23090774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pypi","python","python-packages"],"created_at":"2024-11-23T12:36:23.221Z","updated_at":"2025-06-20T15:36:13.360Z","avatar_url":"https://github.com/IBMStreams.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Python streamsx.eventstreams package.\n\nThis exposes SPL operators in the `com.ibm.streamsx.messagehub` toolkit as Python methods.\n\nPackage is organized using standard packaging to upload to PyPi.\n\nThe package is uploaded to PyPi in the standard way:\n```\ncd package\nrm -rf streamsx.eventstreams.egg-info/ build/ dist/\npython setup.py sdist bdist_wheel upload -r pypi\n```\n**Note:** This is done using the `ibmstreams` account at pypi.org\n\nPackage details: https://pypi.python.org/pypi/streamsx.eventstreams\n\nDocumentation is using Sphinx and can be built locally using:\n```\ncd package/docs\nmake html\n```\nand viewed using\n```\nfirefox build/html/index.html\n```\n\nThe documentation is also setup at `readthedocs.io` under the account: `IBMStreams`\n\nDocumentation links:\n* http://streamsxeventstreams.readthedocs.io\n\n## Version update\n\nTo change the version information of the Python package, edit following files:\n\n- ./package/docs/source/conf.py\n- ./package/streamsx/eventstreams/\\_\\_init\\_\\_.py\n\nWhen the development status changes, edit the *classifiers* in\n\n- ./package/setup.py\n\nWhen the documented sample must be changed, change it here:\n\n- ./package/streamsx/eventstreams/\\_\\_init\\_\\_.py\n- ./package/DESC.txt\n\n\n## Test\n\nPackage can be tested with TopologyTester using the Streaming Analytics service and Event Streams service on IBM Cloud.\nUse Python 3.6 for tests with Streaming Analytics!\n\n| Environment variable | content |\n| --- | --- |\n| VCAP_SERVICES | must point to a file containing VCAP information |\n| STREAMING_ANALYTICS_SERVICE_NAME | the name of your Streaming Analytics Service |\n| STREAMS_INSTALL | must point to your Streams installation, only required for local build |\n| EVENTSTREAMS_TOOLKIT_HOME | The directory where the MessageHub toolkit is located |\n| EVENTSTREAMS_CREDENTIALS | The name of a JSON file with Event Streams service credentials |\n| JAVA_HOME | Java Home, at least Java 1.8, required for remote build |\n\n\nUninstall the `streamsx.eventstreams` package from your Python environment before test:\n\n`pip uninstall streamsx.eventstreams --yes`\n\n\nFor the tests, an application configuration with name `messagehub` is required. It must contain the\nEvent Streams service credentials as `messagehub.creds` property.\n\nFor tests with credentials as dictionary, the environment variable `EVENTSTREAMS_CREDENTIALS` must exist.\nIn the Event Streams service, the topic `MH_TEST` with a single partition must be created.\n\nRun the tests with\n\n```\ncd package\npython3 -u -m unittest streamsx.eventstreams.tests.test_eventstreams.TestMH.test_json   # only test_json\npython3 -u -m unittest streamsx.eventstreams.tests.test_eventstreams                    # all tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibmstreams%2Fpypi.streamsx.eventstreams","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibmstreams%2Fpypi.streamsx.eventstreams","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibmstreams%2Fpypi.streamsx.eventstreams/lists"}