This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 181c78f25 [hotfix] Modify README of python client so that commands can
be copied
181c78f25 is described below
commit 181c78f25b89c56a2e7dabe2707bc13c5ce85ac8
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: