Gets data from the IMF (IMF) by connecting to its API.
Project description
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
- Short sample runs
- Short sample runs of all drivers
- Description of a full return
- Setting up datapungi_imf
- Testing the package
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for datapungi_imf-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44ccdae34c27210abc10c32818822b3a44606a05b9f39d1b7d34acf057a988ef |
|
MD5 | 40e1a3068388fb51cf0f48e935af250f |
|
BLAKE2b-256 | 23e344756e85a99fbb7c707d7f952e0ee02b3005024aaedb7d089e179b0d5dfb |