dqrdb
dqrdb maintains a MariaDB/MySQL database that tracks every Data Quality
Report (DQR) produced by the IGWN DQR pipeline — which events have been
processed, where the report files live, and what site and revision produced
them.
Overview
When the DQR task manager completes a report, dqrdb records it:
GraceDB alert → dqralert → DQR task manager → dqr-process-upload → dqrdb
The database can also be populated in bulk from an existing directory tree
using dqr-scandir.
Installation
pip install dqrdb
Quick Start
1. Configure the database connection
Create a dqrdb.ini file:
[DATABASE]
host = localhost
user = dqr-dev
password = <your-password>
database = dqr
2. Populate the database from an existing directory tree
dqr-scandir -v \
--base-url https://ldas-jobs.ligo.caltech.edu/~dqr \
--project online \
/home/dqr/public_html/o4dqr/online/events/
3. Query the database from Python
from dqrdb.utils import get_events
results = get_events('S230529ad', project='online')
for r in results:
print(r['site'], r['version'], r['url'])
4. Add a result programmatically
from pathlib import Path
from dqrdb.utils import add_result
added = add_result(
path=Path('/home/dqr/public_html/o4dqr/online/events/202305/S230529ad_LHO_01'),
url='https://ldas-jobs.ligo.caltech.edu/~dqr/online/events/202305/S230529ad_LHO_01/',
gid='S230529ad',
project='online',
site='LHO',
rev=1,
)
print('New record inserted:', added)
Command-Line Reference
| Command | Description |
|---|---|
dqr-scandir |
Walk a directory tree and record all DQR results |
dqr-process-upload |
Accept a remote DQR upload and register it in the database |
Documentation
Full documentation — including configuration reference, CLI options, and API docs — is available at:
https://dqr-builder.docs.ligo.org/dqrdb/
License
dqrdb is distributed under the GNU General Public License v3 or later.
Metadata
Release files for dqrdb 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dqrdb-0.2.0.tar.gz | 33.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dqrdb-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.3 kB
Release files / dqrdb-0.2.0.tar.gz
| Download URL | dqrdb-0.2.0.tar.gz |
|---|---|
| Size | 33.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6306359d22b8a46b4e2d8f8ea3a80836fe60f78ac58783c28c888bdce0fb7ec8
|
|
BLAKE2b-256 checksum How to use checksums |
d6c380d5be90b31a3ca98dd90b475c388f8ad1aa3c3d51c85122d9b3bbe08296
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.8
|
Release files / dqrdb-0.2.0-py3-none-any.whl
| Download URL | dqrdb-0.2.0-py3-none-any.whl |
|---|---|
| Size | 39.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c889229d8221165897ea509c47634b365845eadbf039605be904755ed4fe1df5
|
|
BLAKE2b-256 checksum How to use checksums |
4c64ab7d69df017f5aab76675a1aa07d8ca5b92fa9a71da7f4ffebaeaaf19ae8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.8
|