diff --git a/sparcl/client.py b/sparcl/client.py index 7abeca4..6d79f8e 100644 --- a/sparcl/client.py +++ b/sparcl/client.py @@ -485,8 +485,9 @@ def find( constraints={}, # dict(fname) = [op, param, ...] #! exclude_unauth = True, # Not implemented yet limit=500, + offset=0, sort=None, - # count=False, + count=False, # dataset_list=None, verbose=None, ): @@ -509,6 +510,9 @@ def find( limit (:obj:`int`, optional): Maximum number of records to return. Defaults to 500. + offset (:obj:`int`, optional): Number of records to skip before + returning records. Defaults to 0. + sort (:obj:`list`, optional): Comma separated list of fields to sort by. Defaults to None. (no sorting) @@ -550,7 +554,8 @@ def find( } uparams = dict( limit=limit, - #! count='Y' if count else 'N' + offset=offset, + count='Y' if count else 'N' ) if sort is not None: uparams["sort"] = sort