Widukind_sdmx troubles (for a Python novice)

Hi,

I’m attempting to use the DB.nomics connector for pandasdmx.

I ran the following codes from the :

$ pip install https://github.com/dr-leo/pandasdmx/tarball/master
$ pip install git+https://git.nomics.world/dbnomics/dbnomics-connector-pandasdmx.py.git
sdmx = Request(agency='INSEE')
data_response = sdmx.get(resource_type='data', resource_id="IPCH-2015-FR-COICOP", key={'FREQ': 'A', 'PRODUIT': '00', 'NATURE': 'INDICE'})

and received the following error after the 4th line of code:

Traceback (most recent call last):

  File "<ipython-input-103-7f4329f4cc12>", line 1, in <module>
    data_response = sdmx.get(resource_type='data', resource_id="IPCH-2015-FR-COICOP", key={'FREQ': 'A', 'PRODUIT': '00', 'NATURE': 'INDICE'})

  File "/Users/colindesmond/anaconda3/lib/python3.6/site-packages/widukind_sdmx/__init__.py", line 180, in get
    key = self._make_key(resource_id, key)

AttributeError: 'Request' object has no attribute '_make_key'

Any idea what I’m doing wrong?

Thanks,
Colin

Hi,

Sorry for the delay. We are currently developing a new version of DBnomics (website and API). The API will deliver data only in csv and JSON format (available in few weeks). My suggestion is to use the actual JSON format already available, even if it won’t be the exact same structure in the next API.

Thank you for your interest in DB.nomics!