tree: ec3282d1ef466f762e497254b9b605f26d1e6bc5 [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. poetry.lock
  11. pyproject.toml
  12. README.md
streampipes-client-python/README.md

📚 Documentation

Please visit our documentation. There you can find information about how to get started, follow some tutorials, or discover the library via our references.

In case you want to access the documentation of the current development state, you can go here:

👉 development docs 🤓

⚡️ 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",
    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:
6x DataStreams
1x DataLakeMeasures

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