Registry / http-networking / dqsegdb2

dqsegdb2

JSON →
library1.3.0pypypi✓ verified 85d ago

Simplified Python interface to the Detector Characterization (DQSEGDB) API. Currently at version 1.3.0, released with support for Python >=3.6. Maintenance is sporadic; no active development observed.

pip install dqsegdb2
INSTALL
IMPORT
SIG · DQSEGDB2
D
dqsegdb2
http-networkingpythonv1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Session
✓ from dqsegdb2 import Session
✗ from dqsegdb2 import DQSegDB
api
✓ from dqsegdb2 import api
✗ from dqsegdb2 import DQSegDB
query
✓ from dqsegdb2 import query
✗ from dqsegdb2 import DQSegDB

Initialize a DQSegDB client, query flags for a given IFO and time range.

import os from dqsegdb2 import DQSegDB client = DQSegDB(base_url='https://segdb.example.com', token=os.environ.get('DQSEGDB_TOKEN', '')) flags = client.query_flags(ifo='H1', flag='H1_DMT_SCIENCE', start=1234567890, end=1234567990) for flag in flags: print(flag['name'], flag['start_time'], flag['end_time'])
Debug
Known issues
gotchaThe old library `dqsegdb` is completely different. Installing `dqsegdb2` does not upgrade `dqsegdb`. You must change import paths.
fix
Uninstall dqsegdb and install dqsegdb2. Update imports from dqsegdb to dqsegdb2.
affects: all
breakingThe `DQSegDB` class requires an explicit `token` parameter; earlier versions accepted an `auth` tuple. As of 1.3.0, `auth` is deprecated.
fix
Use `token='your_token'` instead of `auth=('user','pass')`.
affects: >=1.2.0
deprecatedThe `query_segments()` method is deprecated in favor of `query_active()` and `query_inactive()`.
fix
Use `client.query_active(ifo, flag, start, end)` or `client.query_inactive(ifo, flag, start, end)`.
affects: >=1.3.0
Upgrade
Version history
1.3.0latest on PyPI · released Jan 8, 2025
Audit
Dependencies
requestsrequiredHTTP requests to DQSEGDB API
Agent activity
19 hits · last 30 days
node
18
OpenAI (training)
1
Resources
dqsegdb2 — pip install dqsegdb2 · libregistry