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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file datapungi_imf-0.2.0.tar.gz.

File metadata

  • Download URL: datapungi_imf-0.2.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.21.0

File hashes

Hashes for datapungi_imf-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ecc2972fcdc30dd040b4fe2798d712befebd43f21f9cc4591875b788b16b86da
MD5 f8f24e1b2f7a9750ec3f658f6f665375
BLAKE2b-256 59c0e63734dbd9e43ecf426ca91b1e2aee0254887ea760656136ba8fab28f5cc

See more details on using hashes here.

File details

Details for the file datapungi_imf-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for datapungi_imf-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 44ccdae34c27210abc10c32818822b3a44606a05b9f39d1b7d34acf057a988ef
MD5 40e1a3068388fb51cf0f48e935af250f
BLAKE2b-256 23e344756e85a99fbb7c707d7f952e0ee02b3005024aaedb7d089e179b0d5dfb

See more details on using hashes here.

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