Skip to main content

A robust Python library to parse API JSON responses into DataFrames with date handling.

Project description

JBridgeDF

PyPI version License: MIT Tests Python

Bridge JSON APIs into clean, time-aware DataFrames.

JBridgeDF is a lightweight Python library that simplifies the process of retrieving and transforming JSON data from APIs into tidy pandas DataFrames — ready for analysis or time series modeling.

🚀 Features

  • Handles HTTP requests and error logging
  • Parses JSON responses into clean DataFrames
  • Handles different JSON answers: plain dict, list of dicts, key-word dict
  • Filters out metadata
  • Automatically removes inconsistent or empty columns
  • Converts timestamps and standardizes time frequency (daily, monthly, quarterly)
  • Designed for public data APIs (like Central Bank, IBGE, FRED, etc.)

📦 Installation

You can install JBridgeDF directly from PyPI:

pip install jbridgedf

```bash
pip install -e .

🧪 Example Usage

from jbridgedf.parser import APIDataParser

parser = APIDataParser()
df = parser.get_from_api(
    url="https://api.bcb.gov.br/dados/serie/bcdata.sgs.11/dados?formato=json",
    variable_list=["data", "valor"],
    is_list=True,
    frequency="monthly",
    date_as_index=True
)
print(df.head())

📁 Project Structure

  • jbridgedf/: core library code
  • tests/: unit tests (pytest recommended)
  • examples/: real-world examples and demos

📬 Contact

For questions, suggestions, or contributions, open an issue on GitHub or email at luismoraes.datascience@gmail.com.

🤝 Ethical Use

This library was developed with the intention of supporting researchers, analysts, and developers working with open or public data APIs.

If you plan to use JBridgeDF in commercial applications, redistributed packages, or mission-critical systems, you are kindly encouraged to retain the original context, acknowledge the author, and consider contributing back.

This is not a legal restriction, but a request to respect the original purpose and community spirit of the project.

📄 License

MIT

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

jbridgedf-0.1.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

jbridgedf-0.1.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file jbridgedf-0.1.2.tar.gz.

File metadata

  • Download URL: jbridgedf-0.1.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for jbridgedf-0.1.2.tar.gz
Algorithm Hash digest
SHA256 435d735859ff87670fdccb5edb2cec285dc95460cdc76d39bd1e362c1093cf91
MD5 1962495774d91dca65fb5d553103f2f6
BLAKE2b-256 57919a7f8ed8fc5175d1b55842f8813633f890f7e49ae43a325c25c866a5d8b0

See more details on using hashes here.

File details

Details for the file jbridgedf-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: jbridgedf-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for jbridgedf-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 75e0cbb2dda839d1671c751e4fdb4fdf605a3dce41e3922ba22e10823d18ab1c
MD5 88fdf54a54cd6058bde2df565a96cc3a
BLAKE2b-256 ed7e8217b218faf7b8275186b42e650114517481f9786d00336fc10f802624d0

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