Skip to main content

UTE API Wrapper 🇺🇾

This Python package provides a convenient wrapper for interacting with the UTE (Administración Nacional de Usinas y Trasmisiones Eléctricas) API in Uruguay 🇺🇾. It allows you to retrieve various information related to your UTE account, electricity consumption, network status, and more.

Table of Contents

Installation

You can install the UTE API Wrapper using pip:

pip install ute-wrapper

Usage

Import the UTEClient class from the package and create an instance with your UTE account details:

from ute_wrapper.ute import UTEClient

email = "your_email@example.com"
phone_number = "your_phone_number"
device_id = "your_device_id"  # Optional
average_cost_per_kwh = 4.0  # Optional, your average cost per kWh in UYU
power_factor = 0.7 # Optional, your power factor

ute_client = UTEClient(email, phone_number, device_id, average_cost_per_kwh, power_factor)

Available Methods

  • get_devices_list(): Get a list of UTE devices associated with the account.
  • get_account(): Get UTE account information for the specified device ID.
  • get_peak(): Get UTE peak information for the specified device ID.
  • get_network_status(): Get UTE network status information.
  • get_renewable_sources(): Get the percentage of UTE renewable sources.
  • get_historic_consumption(date_start=None, date_end=None): Get historic UTE consumption information within a specified date range.
  • get_current_usage_info(): Get current usage information for the specified device ID.
  • get_average_price(plan): Get the average price for a specific UTE plan ("triple" or "doble").

Examples

Get Historic Consumption

historic_consumption = ute_client.get_historic_consumption(date_start="2023-08-01", date_end="2023-08-15")
print(historic_consumption)

Get Current Usage Info

current_usage_info = ute_client.get_current_usage_info()
print(current_usage_info)

Contributing

Contributions are welcome! If you find a bug or have a suggestion, please create an issue or submit Merge Request on Gitlab.

License

This project is licensed under the GNU General Public License, version 3.0. For more details, see LICENSE.


This project is not affiliated with UTE (Administración Nacional de Usinas y Trasmisiones Eléctricas) or its affiliates.

Metadata

Release files for ute-wrapper 1.2.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 ute-wrapper 1.2.0
File Size Uploaded
ute_wrapper-1.2.0.tar.gz 19.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ute-wrapper 1.2.0
File Interpreter ABI Platform
ute_wrapper-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 36.3 kB

Release files / ute_wrapper-1.2.0.tar.gz

Download URL ute_wrapper-1.2.0.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
380bff19be46c368e5e28b3776cf3d76bcc154a7439b683f3078c4c5bfaf8df3
BLAKE2b-256 checksum
How to use checksums
6887ace75100541ba3abe3b828e5fd0c6d2f2af080360132dee944b107e99007
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.1

Release files / ute_wrapper-1.2.0-py3-none-any.whl

Download URL ute_wrapper-1.2.0-py3-none-any.whl
Size 17.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d46b821fa8b580321751ff4c4b51ad568b492d24165462ed55cd08a8eaaa3390
BLAKE2b-256 checksum
How to use checksums
df130fb6c53c2435d32b31e4939b36a5f5a0cbd1018fd6e27a9b507be628cd10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.1

Release history Release notifications | RSS feed

2.5.1

2 release files

2.5.0

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.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