Skip to main content

mq2db

Dump data from a message queue into a database.

Note: mq2db currently uses ZeroMQ sockets as its message-queue backend.

mq2db connects to one or more configured MQ endpoints, parses each received message with a loader, and writes the resulting rows into SQLAlchemy-supported databases.

Installation

After the package is published to PyPI:

python -m pip install mq2db

For development from this repository:

python -m pip install -e '.[test]'

Usage

mq2db path/to/config.yaml

If the mq2db configuration is nested under a larger YAML file, pass the section:

mq2db path/to/config.yaml --section mq2db.specific.setting

Configuration

Example configuration is here: example.yaml. More examples can also be found in the tests directory.

The top-level mq2db configuration contains a targets mapping. Each target defines:

  • ZeroMQ socket settings, such as type, method, address, topic, and receive method.
  • A loader class, such as mq2db.DictLoader, mq2db.JSONLoader, mq2db.TextLoader, mq2db.CSVLoader, or a custom importable class.
  • Database settings, including SQLAlchemy URL, table columns, keys, indices, automatic timestamp/raw columns, and write interval.

Development

python -m pip install -e '.[dev]'
pytest
python -m build
twine check dist/*

Release

Releases use semantic version tags prefixed with v, such as v1.0.0. Pushing a matching tag publishes the package to PyPI through GitHub Actions:

git tag v1.0.0
git push origin v1.0.0

License

mq2db is distributed under the MIT License. See LICENSE.

Metadata

Release files for mq2db 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mq2db 1.0.0
File Size Uploaded Provenance Actions
mq2db-1.0.0.tar.gz 11.5 kB With provenance Details for mq2db-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mq2db 1.0.0
File Interpreter ABI Platform Actions
mq2db-1.0.0-py3-none-any.whl Python 3 none any Details for mq2db-1.0.0-py3-none-any.whl

Total release size: 18.6 kB

Release files / mq2db-1.0.0.tar.gz

Download URL mq2db-1.0.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a89daf0038ed0e640899d747d6a773dab0d35a0821768a3c2c6d20ad32432d81
BLAKE2b-256 checksum
How to use checksums
ebb8f7f35f775125c950d2af4ec1b6c89247dfe9543f3a111d85923ad8ae1254
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2026.

Transparency log

Release files / mq2db-1.0.0-py3-none-any.whl

Download URL mq2db-1.0.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56ca5fa584f3eab08ccfaf7a926831d8df8b78080db4c72f12f265e9de406d03
BLAKE2b-256 checksum
How to use checksums
ab2db849d4c90d6cbf4b2f7b7edb72fa87054977ecb95706ebe888457ea200e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2026.

Transparency log

Security for mq2db 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mq2db-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page