Rave Web Services Library (rwslib)

raw JSON →
1.2.15 verified Fri May 01 auth: no python

A Python client for Medidata Rave Web Services (RWS). Provides ODM document building, dataset requests, and command-line utilities for interacting with Rave APIs. Current version 1.2.15, release cadence irregular.

pip install rwslib
error ModuleNotFoundError: No module named 'rwslib.builders'
cause rwslib 1.2.0+ refactored builders into a subpackage; older code using `from rwslib.builders import *` fails if package missing.
fix
Upgrade to rwslib >=1.2.0 or check installation with pip install --upgrade rwslib.
error AttributeError: module 'rwslib' has no attribute 'RWSCommand'
cause RWSCommand is not imported at top-level; it resides in `rwslib.rws_cmd`.
fix
Use from rwslib.rws_cmd import RWSCommand instead.
breaking Python 3.6 support dropped after version 1.2.2; requires Python >=3.8 as of 1.2.12+.
fix Upgrade to Python 3.8 or newer.
deprecated The enum34 backport is no longer needed for Python 3.4+; installation is conditional but may cause conflicts if pinned.
fix Use rwslib 1.2.2+ which conditionally installs enum34 only for Python <3.4.
gotcha RWSCmd module (rws_cmd) is not a standalone executable; it must be invoked via the Python client.
fix Use `from rwslib.rws_cmd import RWSCommand` and call methods, not as a script.

Initialize RWS client and fetch a dataset. Replace url, username, password, apikey, study_oid, and environment as needed.

from rwslib import RWS

rws = RWS(url='https://your-instance.imedidata.com', username='user', password='pass', apikey='key')
response = rws.get_datasets(dataset='SUBJECT', study_oid='STUDY1', study_env='Prod')
print(response)