Skip to main content

Python Wrapper for the Bank of Japan (BOJ) Time-Series Data Search

Project description

bojpy

PyPI version License: MIT Weekly Downloads Monthly Downloads Downloads

bojpy is a Python package that provides a simple interface to the BOJ Time-Series Data Search.

Installation

pip install bojpy

Requirements

  • beautifulsoup4
  • pandas
  • requests

How to use

from bojpy import boj

# By data series id
df = boj.get_data_series(series="BS01'MABJMTA")

# By Time-series data html url
url = "https://www.stat-search.boj.or.jp/ssi/html/nme_R020MM.3576038.20240826070325.02.html"
df = boj.get_data_html(url)

Output Example

Date        BS01'MABJMTA Bank of Japan Accounts/Assets/Total(Assets, or Liabilities and Net Assets)(s)

2024-07-01                                          7617141.0                                         
2024-06-01                                          7536709.0                                         
2024-05-01                                          7610851.0                                         
2024-04-01                                          7583199.0                                         
2024-03-01                                          7564231.0                                         
...                                                 ...

Disclaimer

This package is nor endorsed by nor affiliated with the Bank of Japan. Please make sure to not abuse the BOJ servers by sending unnecessary requests.

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

bojpy-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bojpy-0.0.1-py2.py3-none-any.whl (4.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file bojpy-0.0.1.tar.gz.

File metadata

  • Download URL: bojpy-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for bojpy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 913b2f1542de8653a99924be7cd541a12ffde1b98de096ec24ae6aa525c3d097
MD5 2ac92c0c8d8fe64d3af10cabcfbe72a2
BLAKE2b-256 caf19589679835c73e0169408c41852d9eb21556f05a94972952fdd95c51025a

See more details on using hashes here.

File details

Details for the file bojpy-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: bojpy-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for bojpy-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 252fdbba93c31d75b3aa41518051afc398d5f1e38014fcacccb7ca9e5d70a876
MD5 65f64e2f44407d17758305726cb11bfb
BLAKE2b-256 2774876cda4a23a1537ed116504ac3f525290a6611965dd1421c4d734f12b1e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page