A robust Python library to parse API JSON responses into DataFrames with date handling.
Project description
JBridgeDF
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 codetests/: 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
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 jbridgedf-0.1.5.tar.gz.
File metadata
- Download URL: jbridgedf-0.1.5.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c4c087090fae3124aee1f175661e5c16cdb66e545d97d61e9ac47960fa50b0c
|
|
| MD5 |
162d928c3bab0a9a7e244d0b9842664a
|
|
| BLAKE2b-256 |
8abd46336257d180e5ef09138213bc66cc3d08323a5db1a81f269714602c2118
|
File details
Details for the file jbridgedf-0.1.5-py3-none-any.whl.
File metadata
- Download URL: jbridgedf-0.1.5-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e56baaf23af4b65572d0ec2b799e218659b166a965a604a2c450be64a5c1b539
|
|
| MD5 |
d990c5ade124f7391b6b7b9632d72684
|
|
| BLAKE2b-256 |
598238e4397be19d13b99d9b5e3b46e023acdf036ee0b9203e8dc8ec1a8af732
|