tree: 66c380230d5c01f8460f3297146aee2eb034e92e [path history] [tgz]
  1. docs/
  2. streampipes/
  3. tests/
  4. .coveragerc
  5. .gitignore
  6. .pre-commit-config.yaml
  7. DEVELOPMENT.md
  8. Makefile
  9. mkdocs.yml
  10. README.md
  11. setup.py
streampipes-client-python/README.md

💡The current version of this Python client is still a beta version.
This means that it is still under development, which may result in frequent and extensive API changes, unstable behavior, etc.

⚡️ Quickstart

As a quick example, we demonstrate how to set up and configure a StreamPipes client.

You can simply install the StreamPipes library by running the following command

pip install streampipes

# if you want to have the current development state you can also execute
pip install git+https://github.com/apache/streampipes.git#subdirectory=streampipes-client-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 = "test@streampipes.apache.org",
...         api_key = "DEMO-KEY",
...         ),
...     host_address = "localhost",
...     http_disabled = True,
...     port = 80
...)

>>> client = StreamPipesClient(client_config=config)
>>> client.describe()

Hi there!
You are connected to a StreamPipes instance running at http://localhost:80.
The following StreamPipes resources are available with this client:
6x DataStreams
1x DataLakeMeasures

For more information about how to use the StreamPipes client visit our introduction example.