Code reference¶
- ctpy.connect(server: str, username: str, password: str, rate_limit: int | None = None) CTPYclient¶
Createa a connection to a CTP server
- class ctpy.client.CTPYclient(server: str, username: str, password: str, rate_limit: int | None = None)¶
Bases:
object- add_to_lookup(stage_id, key, value)¶
- find_object_tracker_stages(pipeline)¶
- get(path: str, query: str | None = None, timeout: float | None = None, headers: Dict[str, str] = None) Response¶
Process a REST GET to the server
- Parameters:
path – path for the request
query – query string to use for the request
timeout – timeout
headers – request headers
- Returns:
requests response
- get_object_tracker_patient_info(pipeline_id, stage_id, key='', patient_id=None, study_uid_filter=None)¶
- get_users()¶
- idmap_reverse_search_patientid(pipeline_id, stage_id, key)¶
- idmap_reverse_search_uid(pipeline_id, stage_id, key)¶
- idmap_search(pipeline_id, stage_id, key, keytype)¶
- idmap_search_patientid(pipeline_id, stage_id, key)¶
- idmap_search_uid(pipeline_id, stage_id, key)¶
- post(path: str, data, query: str | None = None, timeout: float | None = None, headers: Dict[str, str] = None) Response¶
- put(path: str, query: str | None = None, timeout: float | None = None, headers: Dict[str, str] = None) Response¶
- update_password(users)¶