datapungi_imf-0.2.0
توضیحات
Gets data from the IMF (IMF) by connecting to its API.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | datapungi_imf-0.2.0 |
| نام | datapungi_imf |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | James Otterson |
| ایمیل نویسنده | jjotterson@gmail.com |
| آدرس صفحه اصلی | https://github.com/jjotterson/datapungi_imf |
| آدرس اینترنتی | https://pypi.org/project/datapungi_imf/ |
| مجوز | - |
<!--
TODO: add explanation of the request part of the vintage.
-->
[](https://pypi.org/project/datapungi_imf/)
[](https://travis-ci.com/jjotterson/datapungi_imf)
[](https://pypi.org/project/datapungi_imf/)
[](https://pypi.org/project/datapungi_imf/)
install code: pip install datapungi_imf
<h1> datapungi_imf </h1>
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](#Sample-runs)
- [Short sample runs of all drivers](#Sample-run-of-all-drivers)
- [Description of a full return](#Full-request-result)
- [Setting up datapungi_imf](#Setting-up-datapungi_imf)
- [Testing the package](#Running-Tests)
## Sample runs
First, [set the package up](#Setting-up-datapungi_imf) (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:
```python
'''
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')
```
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | pandas |
| - | pytest |
| - | pytest-html |
| - | pyperclip |
| - | lxml |
| - | xlrd |
| - | beautifulsoup4 |
| - | html5lib |
| - | pyyaml |
نحوه نصب
نصب پکیج whl datapungi_imf-0.2.0:
pip install datapungi_imf-0.2.0.whl
نصب پکیج tar.gz datapungi_imf-0.2.0:
pip install datapungi_imf-0.2.0.tar.gz