Add your description here
Project description
MQTT ingestor
Store MQTT messages to database (via mongodb, postgres or sqlalchemy)
Usage
Docker
docker run -v $PWD/.env:/.env --rm ghcr.io/celine-eu/mqtt-ingestor:latest
python API
from mqtt_ingestor.api import MqttIngestor
ingestor = MqttIngestor()
ingestor.start()
Configuration
# log level
LOG_LEVEL=INFO
# broker hostname
MQTT_BROKER=mqtt
MQTT_PORT=1883
MQTT_USER=mqtt_user
MQTT_PASS=secretpass
# enable TLS support
MQTT_TLS=0
# transport: tcp or websockets
MQTT_TRANSPORT=tcp
# list of topics, separated by comma
MQTT_TOPICS='#'
# backend selection: postgres, mongodb or sqlalchemy
STORAGE_BACKEND=postgres
# postgres DSN
POSTGRES_DSN=postgresql://postgres:postgres@postgres:5432/mqtt
# postgres table
POSTGRES_TABLE=mqtt_messages
# sqlalchemy DSN
SQLALCHEMY_DSN=postgresql+psycopg2://postgres:postgres@postgres:5432/mqtt
# sqlalchemy table
SQLALCHEMY_TABLE=mqtt_messages
# mongodb connection URI
MONGO_URI=mongodb://mongo:27017/
# mongodb database
MONGO_DB=mqtt_data
# mongodb collection
MONGO_COLLECTION=data
LICENSE
Copyright >=2025 Spindox Labs
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mqtt_ingestor-0.1.0.tar.gz.
File metadata
- Download URL: mqtt_ingestor-0.1.0.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12974554abf1196f7cc91d754db3e657a8d84b26facaae6f90f97350e18df103
|
|
| MD5 |
cb18a1dc00adef34aadfa271accd3dd1
|
|
| BLAKE2b-256 |
204ce79c1de2c48d6c2e557836eb344fbb522ef1a72cf74109c3a519219ae21d
|
Provenance
The following attestation bundles were made for mqtt_ingestor-0.1.0.tar.gz:
Publisher:
release.yaml on celine-eu/mqtt-ingestor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mqtt_ingestor-0.1.0.tar.gz -
Subject digest:
12974554abf1196f7cc91d754db3e657a8d84b26facaae6f90f97350e18df103 - Sigstore transparency entry: 657818758
- Sigstore integration time:
-
Permalink:
celine-eu/mqtt-ingestor@639851e579ccf6b96cd66b78dc28c5b76d9db43d -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/celine-eu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@639851e579ccf6b96cd66b78dc28c5b76d9db43d -
Trigger Event:
push
-
Statement type:
File details
Details for the file mqtt_ingestor-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mqtt_ingestor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aac0d4bbdcd8f68f77567df10033469e273947cf1cd0c6c6f58dfe208571249a
|
|
| MD5 |
5701fc34514ddbc29ac76fd23e587102
|
|
| BLAKE2b-256 |
bcadc42d1154e938e031a37482a4ac66a7f54361d06081cb888f72af2cc3da8d
|
Provenance
The following attestation bundles were made for mqtt_ingestor-0.1.0-py3-none-any.whl:
Publisher:
release.yaml on celine-eu/mqtt-ingestor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mqtt_ingestor-0.1.0-py3-none-any.whl -
Subject digest:
aac0d4bbdcd8f68f77567df10033469e273947cf1cd0c6c6f58dfe208571249a - Sigstore transparency entry: 657818761
- Sigstore integration time:
-
Permalink:
celine-eu/mqtt-ingestor@639851e579ccf6b96cd66b78dc28c5b76d9db43d -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/celine-eu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@639851e579ccf6b96cd66b78dc28c5b76d9db43d -
Trigger Event:
push
-
Statement type: