Reference#

main.py#

The core module of eudract-py

class eudract.main.Eudract#

Main class

dump(level='summary', to_dict=False, cache_file=None)#

Dump eudract

Parameters:
  • level (str) – type of info to extract (either summary or full)

  • to_dict (Bool) – Return the results as dict

  • cache_file (str) – Set cache filename to save results to sqlite db

Returns:

dictionary

Return type:

[dict]

info(eudract: str, level='summary', to_dict=False, cache_file=None)#

Get info for a study

Parameters:
  • eudract (str) – Eudract ID

  • level (str) – type of info to extract (either summary or full)

  • to_dict (Bool) – Return the results as dict

  • cache_file (str) – Set cache filename to save results to sqlite db

Returns:

dictionary

Return type:

[dict]

search(query: str, level='summary', to_dict=False, size=None, cache_file=None)#

Search studies in Eudract

Parameters:
  • query (str) – text to search

  • level (str) – type of info to extract (either summary or full)

  • to_dict (Bool) – Return the results as dict

  • size (int) – Max size of results

  • cache_file (str) – Set cache filename to save results to sqlite db

Returns:

List of dictionary

Return type:

[list]