You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2022/12/22 20:09:19 UTC

[streampipes] 07/07: add checkstyle to streampipes-wrapper-python

This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch chore/add-checkstyle
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 94e59eb108810bf937854e2bf0dd109196d2cc44
Author: bossenti <bo...@posteo.de>
AuthorDate: Thu Dec 22 21:08:52 2022 +0100

    add checkstyle to streampipes-wrapper-python
---
 streampipes-wrapper-python/README.md               | 22 ++++++++++++++--------
 streampipes-wrapper-python/pom.xml                 | 14 ++++++++++----
 .../streampipes/api/templates/index.html           | 19 ++++++++++---------
 3 files changed, 34 insertions(+), 21 deletions(-)

diff --git a/streampipes-wrapper-python/README.md b/streampipes-wrapper-python/README.md
index 16c471e5a..9a6143790 100644
--- a/streampipes-wrapper-python/README.md
+++ b/streampipes-wrapper-python/README.md
@@ -24,24 +24,30 @@
 [![Twitter](https://img.shields.io/twitter/follow/StreamPipes.svg?label=Follow&style=social)](https://twitter.com/StreamPipes)
 
 ## Apache StreamPipes Wrapper for Python [WIP]
-**NOTE**: 
 
-> The StreamPipes wrapper for python is currently under development. Thus, the processor model description still needs to be implemented externally in Java.
+**NOTE**:
+
+> 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 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.
+Apache StreamPipes enables flexible modeling of stream processing pipelines by providing a graphical
+modeling editor on top of existing stream processing frameworks.
 
-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.
+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 Speudocode Example
+
 **NOTE**:
 Only works in combination with Java!
+
 ````
 from streampipes.core import StandaloneModelSubmitter
 from streampipes.manager import Declarer
diff --git a/streampipes-wrapper-python/pom.xml b/streampipes-wrapper-python/pom.xml
index ec7f52f27..86542fdfb 100644
--- a/streampipes-wrapper-python/pom.xml
+++ b/streampipes-wrapper-python/pom.xml
@@ -16,15 +16,21 @@
   ~ limitations under the License.
   ~
   -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <parent>
         <artifactId>streampipes-parent</artifactId>
         <groupId>org.apache.streampipes</groupId>
         <version>0.91.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
-
     <artifactId>streampipes-wrapper-python</artifactId>
-
-
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-checkstyle-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
 </project>
\ No newline at end of file
diff --git a/streampipes-wrapper-python/streampipes/api/templates/index.html b/streampipes-wrapper-python/streampipes/api/templates/index.html
index 7fd1f7d29..4454426fb 100644
--- a/streampipes-wrapper-python/streampipes/api/templates/index.html
+++ b/streampipes-wrapper-python/streampipes/api/templates/index.html
@@ -20,13 +20,14 @@
 <html lang="en">
 <head>
     <title>StreamPipes Python</title>
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-    <link type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
+    <meta content="width=device-width, initial-scale=1" name="viewport">
+    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css">
     <style type="text/css">
         body {padding-top: 70px;}
+
     </style>
-    <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
-    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
+    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js" type="text/javascript"></script>
+    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
 </head>
 <body>
 <nav class="navbar navbar-inverse navbar-fixed-top" style="background: rgb(57, 181, 74)">
@@ -40,11 +41,11 @@
     <h4>This is a developer-oriented view. Navigate to 'Install Pipeline Elements' in the
         StreamPipes UI to import the elements shown here.
     </h4>
-            {% for processor in processors %}
-            <h3>{{ processor.name }}</h3>
-            <h4>URI: <a href="{{ processor.uri }}">{{ processor.uri }}</a></h4>
-            <h4>Description: {{ processor.description }}</h4>
-            {% endfor %}
+    {% for processor in processors %}
+    <h3>{{ processor.name }}</h3>
+    <h4>URI: <a href="{{ processor.uri }}">{{ processor.uri }}</a></h4>
+    <h4>Description: {{ processor.description }}</h4>
+    {% endfor %}
 </div>
 </body>
 </html>
\ No newline at end of file