Skip to main content

Gets data from the IMF (IMF) by connecting to its API.

Project description

image build Status downloads image

install code: pip install datapungi_imf

datapungi_imf

datapungi_imf is a python package that provides a simplified way to extract data from the API of IMF (IMF). Overall it:

  • can read a saved API key (in json/yaml files or environment variables (default)) to avoid having a copy of it on a script.
  • can automatically test:
    • the connectivity to all BEA datasets,
    • the quality of the cleaned up data, and
    • if the provided requests code snippet returns the correct result.

Sections

Sample runs

First, set the package up (get an API key from BEA, save it somewhere and let datapungi_imf know its location). After setting datapungi_imf up, you can run the following:

'''
  Short datapungi_imf sample run
'''

import datapungi_imf as dpi

data = dpi.data() #or data = dpi.data("API Key"), see setting up section   

data.list()
data.params('IFS')
data.data('IFS/A.GB.PMP_IX')
data.meta('IFS/A.GB.PMP_IX')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datapungi_imf-0.2.0.tar.gz (18.3 kB view hashes)

Uploaded Source

Built Distribution

datapungi_imf-0.2.0-py2.py3-none-any.whl (55.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page