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.

Returns

Return type

pandas.DataFrame

item.remote.get_sdmx(source: Optional[str] = None, **args)pandas.core.frame.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().

Returns

Return type

pandas.DataFrame