History Controller

class genomcore.controllers.history.HistoryController(*args, **kwargs)

Bases: BaseController

Variant controller to interact with variants API. Variants API docs: https://variant-api.genomcore.net/api/docs

query(collection: str, uri: str = None, pageSize: int = 500, select_cols: List = None, cursor: Dict = None)

This method do a query over history db

Parameters:
  • collection (str) – This name of collection, its mandatory arguement

  • uri (str, optional) – its identification of the observation

  • pageSize (int, optional) – its number of elements each query

  • select_cols (list, optional) – This list content the name of columns retorned by the query

  • cursor (dict, optional) – next cursor to return, this dict is returned inside result

Returns:

Json with number elements set in pageSize

Return type:

dict

__annotations__ = {}
__firstlineno__ = 9
__static_attributes__ = ('_requester',)