Skip to main content

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:

  1. Ensure you have uv installed and are running Python >= 3.12

  2. Clone the repository and cd into it

  3. Sync the virtual environment, installing dependencies with uv sync

  4. Create a .env file in the root directory with the following content:

    ITAU_USER_ID=your_user_id
    ITAU_PASSWORD=your_password_base64_encoded
    

    Replace your_user_id and your_password with your actual Itau credentials, password should be encoded in base64.

  5. Run tests:

    uv run pytest
    
  6. 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.

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/AmazingFeature
  3. Commit your changes: git commit -m 'Add some AmazingFeature'
  4. Push to the branch: git push origin feature/AmazingFeature
  5. 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)

Source distribution for itau-uy-api 0.6.0
File Size Uploaded
itau_uy_api-0.6.0.tar.gz 19.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for itau-uy-api 0.6.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page