Skip to main content

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

mqtt_ingestor-1.5.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mqtt_ingestor-1.5.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file mqtt_ingestor-1.5.0.tar.gz.

File metadata

  • Download URL: mqtt_ingestor-1.5.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mqtt_ingestor-1.5.0.tar.gz
Algorithm Hash digest
SHA256 2ad40a2a7fd48458b0c7fac99078bd6cc805023aaf048de12319ddf658a1035a
MD5 b6e882aff9b506ee74253e75fe7b756a
BLAKE2b-256 c3a1bfcf30a21611b7ca9944241f347119ad53a735873755c255f829ad2e47bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqtt_ingestor-1.5.0.tar.gz:

Publisher: release.yaml on celine-eu/mqtt-ingestor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mqtt_ingestor-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: mqtt_ingestor-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mqtt_ingestor-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86dffa91e22554d9c3934c3e76696bfc815f5042f8f0d955c3d6e3542da36c83
MD5 44ab18575be0e39ad1d5cc26421e7996
BLAKE2b-256 6c96cde0930e1f238d13e9ff6e23bb3b9adb0976a5b2262adcc657c5938c6ea7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqtt_ingestor-1.5.0-py3-none-any.whl:

Publisher: release.yaml on celine-eu/mqtt-ingestor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page