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",
frequency=["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 and clone the repository and open a terminal in the repository directory
- Install uv with
curl -LsSf https://astral.sh/uv/install.sh | sh - Install the dependencies with
uv sync - Install a git hook to enforce conventional commits with
curl -o- https://raw.githubusercontent.com/chriscarrollsmith/conventional-commits-git-hook/master/scripts/install.sh | sh - Create a fix, commit it with an "Angular-style Conventional Commit" message, and push it to your fork
- Open a pull request to our
mainbranch
Note that if you want to change and preview the documentation, you will need to install the Quarto CLI tool.
Version incrementing, package building, testing, changelog generation, documentation rendering, publishing to PyPI, and Github release creation is handled automatically by the GitHub Actions workflow based on the commit messages.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imfp-1.3.0.tar.gz.
File metadata
- Download URL: imfp-1.3.0.tar.gz
- Upload date:
- Size: 32.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de13f3b037a8addb94ad0d9a564a0fe1ea4cd807e294d4cd3a4539c862cb21ea
|
|
| MD5 |
53e0cc16ae833b269b42f4acd0dca0da
|
|
| BLAKE2b-256 |
32f86f87b74a898b554ee2fda7b1f42c585535701992674122db16ba66dbbed0
|
Provenance
The following attestation bundles were made for imfp-1.3.0.tar.gz:
Publisher:
release.yml on Promptly-Technologies-LLC/imfp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imfp-1.3.0.tar.gz -
Subject digest:
de13f3b037a8addb94ad0d9a564a0fe1ea4cd807e294d4cd3a4539c862cb21ea - Sigstore transparency entry: 689384891
- Sigstore integration time:
-
Permalink:
Promptly-Technologies-LLC/imfp@9a3325c9a6bf3b29165637c2463f0cd6ce0ba46d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Promptly-Technologies-LLC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9a3325c9a6bf3b29165637c2463f0cd6ce0ba46d -
Trigger Event:
push
-
Statement type:
File details
Details for the file imfp-1.3.0-py3-none-any.whl.
File metadata
- Download URL: imfp-1.3.0-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d6a6bed248aca006625243e8b8b7c388b507858fdcd5e6e950b9e10728f26ed
|
|
| MD5 |
daad3343d82e5f2a6e13d120e18e63a5
|
|
| BLAKE2b-256 |
5c21f399b62b1f4e751af36730adec1073a020ccc9d4a03e4a6cfd2ec4e8f464
|
Provenance
The following attestation bundles were made for imfp-1.3.0-py3-none-any.whl:
Publisher:
release.yml on Promptly-Technologies-LLC/imfp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imfp-1.3.0-py3-none-any.whl -
Subject digest:
0d6a6bed248aca006625243e8b8b7c388b507858fdcd5e6e950b9e10728f26ed - Sigstore transparency entry: 689384898
- Sigstore integration time:
-
Permalink:
Promptly-Technologies-LLC/imfp@9a3325c9a6bf3b29165637c2463f0cd6ce0ba46d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Promptly-Technologies-LLC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9a3325c9a6bf3b29165637c2463f0cd6ce0ba46d -
Trigger Event:
push
-
Statement type: