Skip to content

Commit

Permalink
Merge pull request tkp-archive#344 from timkpaine/tkp/jobs
Browse files Browse the repository at this point in the history
Add extra route
  • Loading branch information
Tim Paine committed Nov 22, 2021
2 parents a8958db + da55c48 commit 254c44b
Show file tree
Hide file tree
Showing 6 changed files with 1,013 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyEX/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
listDatasets,
listDatasetsAsync,
listDatasetsDF,
listJobs,
loadData,
loadDataAsync,
modifyDataset,
Expand Down Expand Up @@ -828,6 +829,7 @@
("listDatasets", listDatasets),
("listDatasetsAsync", listDatasetsAsync),
("listDatasetsDF", listDatasetsDF),
("listJobs", listJobs),
("loadData", loadData),
("loadDataAsync", loadDataAsync),
("modifyDataset", modifyDataset),
Expand Down
1 change: 1 addition & 0 deletions pyEX/platform/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
listDatasets,
listDatasetsAsync,
listDatasetsDF,
listJobs,
loadData,
loadDataAsync,
modifyDataset,
Expand Down
7 changes: 7 additions & 0 deletions pyEX/platform/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,13 @@ async def queryAsync(
)


def listJobs(
provider, type="ingest", token="", version="stable", filter="", format="json"
):
url = "jobs/{}/{}".format(provider, type)
return _get(url=url, token=token, version=version, filter=filter, format=format)


def listDatasets(
provider="CORE", id="", token="", version="stable", filter="", format="json"
):
Expand Down

0 comments on commit 254c44b

Please sign in to comment.