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

bossenti pushed a commit to branch rel/0.91.0
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit d7fd69c8a434542218a38b8364e3e56394d7adb3
Author: Dominik Riemer <[email protected]>
AuthorDate: Tue Feb 28 11:43:10 2023 +0100

    [hotfix] Modify README of python client so that commands can be copied
---
 streampipes-client-python/README.md | 35 +++++++++++++++++++----------------
 1 file changed, 19 insertions(+), 16 deletions(-)

diff --git a/streampipes-client-python/README.md 
b/streampipes-client-python/README.md
index 68b4bf4bb..15d2c976c 100644
--- a/streampipes-client-python/README.md
+++ b/streampipes-client-python/README.md
@@ -54,23 +54,26 @@ pip install 
git+https://github.com/apache/streampipes.git#subdirectory=streampip
 ```
 
 ```python
->>> from streampipes.client import StreamPipesClient
->>> from streampipes.client.config import StreamPipesClientConfig
->>> from streampipes.client.credential_provider import 
StreamPipesApiKeyCredentials
-
->>> config = StreamPipesClientConfig(
-...     credential_provider = StreamPipesApiKeyCredentials(
-...         username = "[email protected]",
-...         api_key = "DEMO-KEY",
-...         ),
-...     host_address = "localhost",
-...     https_disabled = True,
-...     port = 80
-...)
-
->>> client = StreamPipesClient(client_config=config)
->>> client.describe()
+from streampipes.client import StreamPipesClient
+from streampipes.client.config import StreamPipesClientConfig
+from streampipes.client.credential_provider import StreamPipesApiKeyCredentials
+
+config = StreamPipesClientConfig(
+    credential_provider = StreamPipesApiKeyCredentials(
+        username = "[email protected]",
+        api_key = "DEMO-KEY",
+    ),
+    host_address = "localhost",
+    https_disabled = True,
+    port = 80
+)
+
+client = StreamPipesClient(client_config=config)
+client.describe()
+```
 
+Output:
+```
 Hi there!
 You are connected to a StreamPipes instance running at http://localhost:80.
 The following StreamPipes resources are available with this client:

Reply via email to