Python package for downloading economic data from the International Monetary Fund JSON RESTful API endpoint.
Project description
imfp
imfp
, by Christopher C. Smith, is a Python package for downloading data from the International Monetary Fund's RESTful JSON API.
Installation
pip install -q --upgrade imfp
Quick Start
import imfp
# Get list of available databases
databases = imfp.imf_databases()
# Get parameters for a specific database (e.g., PCPS - Primary Commodity Price System)
params = imfp.imf_parameters("PCPS")
# Fetch data with specific parameters
df = imfp.imf_dataset(
database_id="PCPS",
freq=["A"],
start_year=2000,
end_year=2015
)
Key Features
- Comprehensive access to IMF's extensive economic databases
- Parameter discovery
- Rate limit and bandwidth management
- Returns data in pandas DataFrames
Contributing
We welcome contributions to improve imfp
! Here's how you can help:
- If you find a bug, please open an issue
- To fix a bug:
- Fork the repository
- Create a fix
- Open a pull request to the
dev
branch
For maintainers: To deploy a new version:
- Increment version with
poetry version patch/minor/major
- Update dependencies with
poetry update
- Run tests with
pytest tests
- Update documentation if needed
- Push to dev
- Open PR to main
The GitHub Actions workflow will handle code formatting, testing, and deployment to PyPI after merge.
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
imfp-1.1.3.tar.gz
(12.9 kB
view details)
Built Distribution
imfp-1.1.3-py3-none-any.whl
(14.2 kB
view details)
File details
Details for the file imfp-1.1.3.tar.gz
.
File metadata
- Download URL: imfp-1.1.3.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6564e4d37b9eb261cd5da6c848ea57acf0fe7e06d1f1d57edd99948ef223652e |
|
MD5 | 5dd1e555fc4e59409ab1dfc7e28240bd |
|
BLAKE2b-256 | 2c325a195f6dd62c97637273257a44e8393eb77b3a0e41942bf1e52121aea769 |
File details
Details for the file imfp-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: imfp-1.1.3-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4730601bb47805615cfeba12c09f5174343a6fc6026e632603c62a448821f0da |
|
MD5 | 866db444496bea3594a63038662dc0cd |
|
BLAKE2b-256 | ebd91c679526a235f08bf81bb21d9d894105d2385d144fdf8eeb9b850fcd5e8f |