You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by wi...@apache.org on 2020/08/10 13:06:33 UTC
[incubator-streampipes] 03/03: [hotfix] updated setup.py and
README.md
This is an automated email from the ASF dual-hosted git repository.
wiener pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
commit b618b859d16ce37a3a7244530828238b664996b1
Author: Patrick Wiener <wi...@fzi.de>
AuthorDate: Mon Aug 10 15:06:07 2020 +0200
[hotfix] updated setup.py and README.md
---
streampipes-wrapper-python/README.md | 52 ++++++++++++++++++--------
streampipes-wrapper-python/setup.py | 4 +-
streampipes-wrapper-python/streampipes/core.py | 2 +-
3 files changed, 40 insertions(+), 18 deletions(-)
diff --git a/streampipes-wrapper-python/README.md b/streampipes-wrapper-python/README.md
index d77ce90..9d31a29 100644
--- a/streampipes-wrapper-python/README.md
+++ b/streampipes-wrapper-python/README.md
@@ -15,15 +15,37 @@
~ limitations under the License.
~
-->
-# [WIP] Apache StreamPipes Wrapper for Python
+[](https://github.com/apache/incubator-streampipes/actions/)
+[](https://hub.docker.com/r/apachestreampipes/backend/)
+[](https://img.shields.io/maven-central/v/org.apache.streampipes/streampipes-backend.svg)
+[](http://www.apache.org/licenses/LICENSE-2.0)
+[]()
+[](https://twitter.com/StreamPipes)
+
+## Apache StreamPipes Wrapper for Python [WIP]
**NOTE**:
-> The python wrapper is currently under development. Thus, it only works in combination when having Java processor for describing, registration and talking to the backend.
+> The StreamPipes wrapper for python is currently under development. Thus, the processor model description still needs to be implemented externally in Java.
+
+## Apache StreamPipes
+Apache StreamPipes (incubating) enables flexible modeling of stream processing pipelines by providing a graphical
+modeling editor on top of existing stream processing frameworks.
+
+It leverages non-technical users to quickly define and execute processing pipelines based on an easily extensible
+toolbox of data sources, data processors and data sinks. StreamPipes has an exchangeable runtime execution layer and executes pipelines using one of the provided wrappers, e.g., for Apache Flink or Apache Kafka Streams.
+
+Pipeline elements in StreamPipes can be installed at runtime - the built-in SDK allows to easily implement new
+pipeline elements according to your needs. Pipeline elements are standalone microservices that can run anywhere - centrally on your server, in a large-scale cluster or close at the edge.
+
-### A minimal example
-#### Define a processor
-```
+## A Speudocode Example
+**NOTE**:
+Only works in combination with Java!
+````
+from streampipes.core import StandaloneModelSubmitter
+from streampipes.manager import Declarer
+from streampipes.model.pipeline_element_config import Config
from streampipes.core import EventProcessor
@@ -38,15 +60,6 @@ class HelloWorldProcessor(EventProcessor):
def on_detach(self):
pass
-```
-This processor received an event `dict` and adds a new `greeting` field including the message `hello world` to it.
-#### Add to processor dict
-````
-from streampipes.core import StandaloneModelSubmitter
-from streampipes.manager import Declarer
-from streampipes.model.pipeline_element_config import Config
-
-from helloworld import HelloWorldProcessor
def main():
@@ -85,4 +98,13 @@ def main():
if __name__ == '__main__':
main()
````
-Add the newly defined `HelloWorldProcessor` to the processors dictionary including a unique id `org.apache.streampipes.processors.python.helloworld`.
+
+### DISCLAIMER (WIP)
+Apache StreamPipes is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache
+Incubator. Incubation is required of all newly accepted projects until a further review indicates that the
+infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+
+Some of the incubating project’s releases may not be fully compliant with ASF policy. For example, releases may have incomplete or un-reviewed licensing conditions. What follows is a list of known issues the project is currently aware of (note that this list, by definition, is likely to be incomplete):
+(currently no issues are known)
+
+If you are planning to incorporate this work into your product/project, please be aware that you will need to conduct a thorough licensing review to determine the overall implications of including this work. For the current status of this project through the Apache Incubator visit: https://incubator.apache.org/projects/streampipes.html
diff --git a/streampipes-wrapper-python/setup.py b/streampipes-wrapper-python/setup.py
index 7d51140..a4e074c 100644
--- a/streampipes-wrapper-python/setup.py
+++ b/streampipes-wrapper-python/setup.py
@@ -26,8 +26,8 @@ with io.open(os.path.join(this_directory, 'README.md'), 'r', encoding='utf-8') a
long_description = f.read()
setup(
- name='apache-streampipes-python',
- version='0.67.0-SNAPSHOT',
+ name='apache-streampipes',
+ version='0.67.0.dev1',
packages=find_packages(),
package_data={'streampipes': ['api/templates/*']},
url='https://github.com/apache/incubator-streampipes',
diff --git a/streampipes-wrapper-python/streampipes/core.py b/streampipes-wrapper-python/streampipes/core.py
index 543f5d7..cf21c91 100644
--- a/streampipes-wrapper-python/streampipes/core.py
+++ b/streampipes-wrapper-python/streampipes/core.py
@@ -24,7 +24,7 @@ from confluent_kafka import Producer, Consumer
class EventProcessor(object):
- __metaclass__ = abc.ABC
+ __metaclass__ = abc.ABC0
_DEFAULT_KAFKA_CONSUMER_CONFIG = {
'bootstrap.servers': 'kafka:9092',