A Python connector for the BCRA (Banco Central de la República Argentina) APIs
Project description
BCRA API Connector
A Python connector for the BCRA (Banco Central de la República Argentina) APIs, covering Principal Variables/Monetary Statistics, Cheques, and Exchange Rate Statistics.
Features
- Comprehensive Data Access: Fetch Principal Variables, Monetary Statistics, Checks information, and Exchange Rates.
- Historical Data: Easily retrieve and analyze historical time series for any variable.
- Robustness: Built-in retry logic with exponential backoff and safe failure handling.
- Developer Friendly:
- Full Type Hinting for better IDE support.
- Bilingual context (Spanish API / English Wrapper).
- Detailed debug logging.
- Configurable: Options for SSL verification, retries, and timeouts.
Documentation
Full documentation, including installation instructions, usage examples, and API reference, is available at:
Installation
pip install bcra-connector
For detailed installation instructions and requirements, see our Installation Guide.
Quick Start
Get up and running in seconds:
from bcra_connector import BCRAConnector
# Initialize the connector
connector = BCRAConnector()
# 1. List principal variables published by BCRA
variables = connector.get_principales_variables()
print(f"Found {len(variables)} variables.")
# 2. Get the latest value for a specific variable (e.g., using the ID of the first one)
if variables:
target_var = variables[0]
print(f"Fetching data for: {target_var.descripcion} (ID: {target_var.idVariable})")
latest = connector.get_latest_value(target_var.idVariable)
print(f"Latest Value: {latest.valor} on {latest.fecha}")
# 3. Get historical data (last 30 days)
# (Note: Date range filtering is handled by the API or post-processing)
Contributing
Contributions are welcome! Please read our:
Security
For vulnerability reports, please review our Security Policy.
Change Log
See CHANGELOG.md for a list of changes and version updates.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Disclaimer
This project is not officially affiliated with or endorsed by the Banco Central de la República Argentina. Use at your own risk.
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 bcra_connector-0.6.0.tar.gz.
File metadata
- Download URL: bcra_connector-0.6.0.tar.gz
- Upload date:
- Size: 61.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
beb088356a9c3b472ee19ffe87bf1ff2f02f975be52789e8923fcfb1d08161b5
|
|
| MD5 |
2a9d404d9205e77f5b5691139b2f85b4
|
|
| BLAKE2b-256 |
1183f5af24109a1ec0d44f54207b317ecc286ffd3e0aa5985ad7666feac065a9
|
Provenance
The following attestation bundles were made for bcra_connector-0.6.0.tar.gz:
Publisher:
test-and-publish.yaml on PPeitsch/bcra-connector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bcra_connector-0.6.0.tar.gz -
Subject digest:
beb088356a9c3b472ee19ffe87bf1ff2f02f975be52789e8923fcfb1d08161b5 - Sigstore transparency entry: 748733619
- Sigstore integration time:
-
Permalink:
PPeitsch/bcra-connector@8c8dc19fa764a86fb068ad606c01605fb9464b95 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/PPeitsch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test-and-publish.yaml@8c8dc19fa764a86fb068ad606c01605fb9464b95 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bcra_connector-0.6.0-py3-none-any.whl.
File metadata
- Download URL: bcra_connector-0.6.0-py3-none-any.whl
- Upload date:
- Size: 23.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 |
4d5bd070fe8ef58261f8247636ba910e9d526ac26b294e785b7c33a42f87ae40
|
|
| MD5 |
8292b9d1a92066a223ef88ee8cd1c8a6
|
|
| BLAKE2b-256 |
1399f383af61ba3beaa1cf0ef07ddda0f77ab157257d8e68af6467dadce9c728
|
Provenance
The following attestation bundles were made for bcra_connector-0.6.0-py3-none-any.whl:
Publisher:
test-and-publish.yaml on PPeitsch/bcra-connector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bcra_connector-0.6.0-py3-none-any.whl -
Subject digest:
4d5bd070fe8ef58261f8247636ba910e9d526ac26b294e785b7c33a42f87ae40 - Sigstore transparency entry: 748733624
- Sigstore integration time:
-
Permalink:
PPeitsch/bcra-connector@8c8dc19fa764a86fb068ad606c01605fb9464b95 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/PPeitsch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test-and-publish.yaml@8c8dc19fa764a86fb068ad606c01605fb9464b95 -
Trigger Event:
push
-
Statement type: