Skip to content

First Steps

📚 Installation

The StreamPipes Python library is meant to work with Python 3.8 and above. Installation can be done via pip: You can install the latest development version from GitHub, as so:

pip install streampipes

# if you want to have the current development state you can also execute
pip install git+
# the corresponding documentation can be found here:

⬆️ Setting up StreamPipes

When working with the StreamPipes Python library it is inevitable to have a running StreamPipes instance to connect and interact with. In case you don't have a running instance at hand, you can easily set up one on your local machine. Hereby you need to consider that StreamPipes supports different message broker (e.g., Kafka, NATS). We will demonstrate below how you can easily set up StreamPipes for both supported message brokers.

🐳 Start StreamPipes via Docker Compose

The easiest and therefore recommend way to get StreamPipes started is by using docker compose. Therefore, you need Docker running. You can check if Docker is ready on your machine by executing.

docker ps
If this results in an output similar to the following, Docker is ready to continue.
...            ...       ...       ...       ...       ...       ...
Otherwise, you need to start docker first. Please read the full guide on how to start StreamPipes with docker compose here.

Setup StreamPipes with NATS as message broker

The following shows how you can set up a StreamPipes instance that uses NATS as messaging layer. So in this scenario, we will go with docker-compose.nats.yml. Thereby, when running locally, we need to add the following port mapping entry to services.nats.ports:

- 4222:4222

After this modification is applied, StreamPipes can simply be started with this command:

docker-compose -f docker-compose.nats.yml up -d

Once all services are started, you can access StreamPipes via http://localhost.

Setup StreamPipes with Kafka as message broker

Alternatively, you can use docker-compose.yml to start StreamPipes with Kafka as messaging layer. Therefore, you onyl need to execute the following command:

docker-compose -f docker-compose.yml up -d

Once all services are started, you can access StreamPipes via http://localhost.

In case you want to have more control over your StreamPipes setup, you might take a look at our deployment CLI.

Have fun discovering StreamPipes and our Python library 🚀