Itaú UY API
A Python library for interacting with the Itaú Uruguay bank API.
Installation
To install the package with all its dependencies to your local environment:
pip install .
For development, sync your venv with uv:
uv sync --all-extras --dev
Usage
from itau_uy_api import ItauAPI
import os
from dotenv import load_dotenv
# Load environment variables
load_dotenv()
# Initialize the API
api = ItauAPI(os.environ['ITAU_USER_ID'], os.environ['ITAU_PASSWORD'])
# Login
api.login()
# Get account information
for account in api.accounts:
print(f"Account Type: {account['type']}")
print(f"Balance: {account['balance']} {account['currency']}")
# Get transactions for the current month
from datetime import datetime
current_month = datetime.now().month
current_year = datetime.now().year
transactions = api.get_month(api.accounts[0]['hash'], current_month, current_year)
# Get credit card transactions
credit_transactions = api.get_credit_card_transactions()
Development
To set up the development environment:
-
Ensure you have uv installed and are running
Python >= 3.12 -
Clone the repository and
cdinto it -
Sync the virtual environment, installing dependencies with
uv sync -
Create a
.envfile in the root directory with the following content:ITAU_USER_ID=your_user_id ITAU_PASSWORD=your_password_base64_encodedReplace
your_user_idandyour_passwordwith your actual Itau credentials, password should be encoded in base64. -
Run tests:
uv run pytest -
Run linters and formatters:
uv run black . uv run pflake8 uv run mypy .
Note: Make sure to never commit your .env file to version control as it contains sensitive information.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch:
git checkout -b feature/AmazingFeature - Commit your changes:
git commit -m 'Add some AmazingFeature' - Push to the branch:
git push origin feature/AmazingFeature - Open a pull request
License
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for itau-uy-api 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| itau_uy_api-0.6.0.tar.gz | 19.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| itau_uy_api-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.7 kB
Release files / itau_uy_api-0.6.0.tar.gz
| Download URL | itau_uy_api-0.6.0.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c4805c09e9068ef1df12136828e4111c9dca5ad0d9579b5ad7213e33c38a9a3
|
|
BLAKE2b-256 checksum How to use checksums |
3fc051f5d4d52850f27240cd6125b21d10d198687c0dc563e8f178c7217d3083
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / itau_uy_api-0.6.0-py3-none-any.whl
| Download URL | itau_uy_api-0.6.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e264dc99683630c0a4e06cbf5326f4f5018c344ff35dda9030b8d6fb83618012
|
|
BLAKE2b-256 checksum How to use checksums |
7710c94f251188b9626611e2f8dc185e67da6f46bc4bd9a8adfdc163adfa2016
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|