Registry / http-networking / dbs3-pycurl

dbs3-pycurl

JSON →
library3.18.3pypypiunverified

DBS3 Pycurl Client is a Python library providing a pycurl-based HTTP client for interacting with the CMS Data Bookkeeping Service (DBS). Version 3.18.3 is currently available, with last release in 2023-2024, and it follows the DBS3 release schedule.

pip install dbs3-pycurl
INSTALL
IMPORT
SIG · DBS3-PYCURL
D
dbs3-pycurl
http-networkingpythonv3.18.3
Install
1.7s avg
Import
—
Disk
30MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v3.18.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
build_error
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 32MB
30MB installed
● package 30MB
Code
Verified usage

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

RestClient
✓ from RestClient import RestClient
✗ from dbs.apis.dbsClient import DBSClient

Initialize DBSReader with production URL and fetch dataset summary.

from dbs.apis.dbsClient import DBSReader import os # Example: fetch dataset summary by dataset reader = DBSReader(url="https://cmsweb.cern.ch/dbs/prod/global/DBSReader") dataset = "/Sample/Sample-4342-0003/GEN-SIM" summary = reader.listDatasetSummary(dataset=dataset) print(summary)
Debug
Known issues
gotchaThe DBSClient and DBSReader classes are not thread-safe. Do not share instances across threads without locks.
fix
Create a new client instance per thread or use threading locks.
affects: all
deprecatedThe 'dbs.apis.dbsClient' API is gradually being replaced by REST-based clients. Check for 'DBS3Client' or direct REST calls in newer releases.
fix
Monitor release notes for deprecation timelines and migrate to REST.
affects: >=3.18.0
gotchaThe library uses pycurl under the hood; ensure that the system has libcurl installed and pycurl is compiled with SSL support to avoid connection errors.
fix
Install pycurl with SSL support, e.g., 'PYCURL_SSL_LIBRARY=openssl pip install pycurl'.
affects: all
Upgrade
Version history
3.18.3latest on PyPI · released Sep 16, 2024
Audit
Dependencies
pycurlrequiredRequired for HTTP client functionality
cx-OracleoptionalRequired for Oracle database access
Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources
dbs3-pycurl — pip install dbs3-pycurl · libregistry