Fetching remote data (item.remote)

Tools to retrieve and push data.

class item.remote.OpenKAPSARC(server=None, api_key=None)[source]

Wrapper for the OpenKAPSARC data API.

See https://datasource.kapsarc.org/api/v2/console

Parameters:

server (str, optional) – Address of the server, e.g. http://example.com:8888.

endpoint(name, *args, params={}, **kwargs)[source]

Call the API endpoint name with any additional args.

table(dataset_id, cache=True, **kwargs)[source]

Return data from dataset name.

Currently only the latest data on the master branch is returned.

Return type:

pandas.DataFrame

item.remote.get_sdmx(source: str | None = None, **args) DataFrame[source]

Retrieve data from source using sdmx.

Parameters:
  • source (str) – Name of a data source recognized by sdmx1, e.g. ‘OECD’.

  • args – Other arguments to sdmx.Request.get().

Return type:

pandas.DataFrame