Skip to main content

Python package for downloading economic data from the International Monetary Fund JSON RESTful API endpoint.

Project description

imfp

Tests PyPI Version Code style: black

imfp, by Christopher C. Smith, is a Python package for downloading data from the International Monetary Fund's RESTful JSON API.

📚 Full Documentation

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:

  1. If you find a bug, please open an issue
  2. 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:

  1. Increment version with poetry version patch/minor/major
  2. Update dependencies with poetry update
  3. Run tests with pytest tests
  4. Update documentation if needed
  5. Push to dev
  6. Open PR to main

The GitHub Actions workflow will handle code formatting, testing, and deployment to PyPI after merge.

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

imfp-1.1.3.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

imfp-1.1.3-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

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

Hashes for imfp-1.1.3.tar.gz
Algorithm Hash digest
SHA256 6564e4d37b9eb261cd5da6c848ea57acf0fe7e06d1f1d57edd99948ef223652e
MD5 5dd1e555fc4e59409ab1dfc7e28240bd
BLAKE2b-256 2c325a195f6dd62c97637273257a44e8393eb77b3a0e41942bf1e52121aea769

See more details on using hashes here.

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

Hashes for imfp-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4730601bb47805615cfeba12c09f5174343a6fc6026e632603c62a448821f0da
MD5 866db444496bea3594a63038662dc0cd
BLAKE2b-256 ebd91c679526a235f08bf81bb21d9d894105d2385d144fdf8eeb9b850fcd5e8f

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