Overview
Provides functions to read messages from IBM Event Streams as a stream and publish tuples to Event Streams as messages.
IBM® Event Streams is a fully managed, cloud-based messaging service. Built on Apache Kafka, IBM Event Streams is a high-throughput, fault-tolerant, event management platform that helps you build intelligent, responsive, event-driven applications.
You may also review the streamsx.kafka package. to integrate IBM Event Streams cloud service with your IBM Streams topology applications.
Sample
A simple hello world example of a Streams application publishing to a topic and the same application consuming the same topic:
from streamsx.topology.topology import Topology
from streamsx.topology.schema import CommonSchema
from streamsx.topology.context import submit, ContextTypes
import streamsx.eventstreams as eventstreams
import time
def delay(v):
time.sleep(5.0)
return True
topology = Topology('EventStreamsHelloWorld')
to_evstr = topology.source(['Hello', 'World!'])
to_evstr = to_evstr.as_string()
# delay tuple by tuple
to_evstr = to_evstr.filter(delay)
# Publish a stream to Event Streams using HELLO topic
eventstreams.publish(to_evstr, topic='HELLO')
# Subscribe to same topic as a stream
from_evstr = eventstreams.subscribe(topology, schema=CommonSchema.String, topic='HELLO')
# You'll find the Hello World! in stdout log file:
from_evstr.print()
# finally submit the topology to a Streaming Analytics Service instance
submit(ContextTypes.STREAMING_ANALYTICS_SERVICE, topology)
Documentation
Metadata
Release files for streamsx.eventstreams 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| streamsx.eventstreams-2.0.1.tar.gz | 12.9 kB | Without provenance | Details for streamsx.eventstreams-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| streamsx.eventstreams-2.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for streamsx.eventstreams-2.0.1-py2.py3-none-any.whl |
Total release size: 29.0 kB
Release files / streamsx.eventstreams-2.0.1.tar.gz
| Download URL | streamsx.eventstreams-2.0.1.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
907e1a5e7bcea7641ab1e8c33b683365cc6fda769f952bae709d5e2e24c52c0f
|
|
BLAKE2b-256 checksum How to use checksums |
7349ca87a81d3e8924d04ee4fb3d49b6da592e442eba188ba00b0d6b332ff885
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Release files / streamsx.eventstreams-2.0.1-py2.py3-none-any.whl
| Download URL | streamsx.eventstreams-2.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
327071a7ae62e83695dab18c43aff09a8e4cd1202eee0c043d44ac58918765aa
|
|
BLAKE2b-256 checksum How to use checksums |
5e4edfe0be422012e94b58adb5db9e2dc6aae7cb8c0c09451b8b3cb12707ebcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for streamsx.eventstreams 2.0.1
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.