SdmxWebServiceConnection
- class sdmxthon.webservices.webservices.SdmxWebServiceConnection
Bases:
ABC
Base class for all SDMX web service connections.
Implements the query builder QueryBuilder and the methods to get the data from the web service.
- Parameters:
AGENCY_ID (str) – The agency id of the web service
ENTRY_POINT (str) – The entry point of the web service
WS_IMPLEMENTATION (QueryBuilder) – The query builder implementation
- AGENCY_ID = None
- ENTRY_POINT = None
- WS_IMPLEMENTATION = None
- get_all_dataflows()
Queries the API to get the simplified information of all dataflows
- Returns:
A list of dictionaries with the information of the dataflows (id, unique_id, name, description, version)
- get_constraints(**kwargs)
- get_constraints_url(flow, **kwargs) str
Returns the URL to get the constraints
- get_data(flow, **kwargs)
- get_data_flow(flow, **kwargs)
- get_data_flow_url(flow, **kwargs) str
Generates the URL to get the dataflow
- Parameters:
flow (str) – The id of the dataflow
kwargs (dict) – The parameters to add to the URL (check the documentation of the get_data method in QueryBuilder )
get_data()
- get_data_url(flow, **kwargs) str
Returns the URL to get the data
- get_dsd(**kwargs)
- get_dsd_url(resources=None, **kwargs) str
Returns the URL to get the data
- get_pandas_with_names(flow, **kwargs)
Returns a Pandas DataFrame with the data
- static get_sdmxthon_code(url)
Returns a string with the SDMXThon code to get some data into Pandas