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.9 # Optional, your power factor. It's almost always close to 1
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 a 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 2.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ute_wrapper-2.3.1.tar.gz | 18.9 kB | Without provenance | Details for ute_wrapper-2.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ute_wrapper-2.3.1-py3-none-any.whl | Python 3 | none | any | Details for ute_wrapper-2.3.1-py3-none-any.whl |
Total release size: 38.1 kB
Release files / ute_wrapper-2.3.1.tar.gz
| Download URL | ute_wrapper-2.3.1.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c81a637a72562f93bc87cd0df7a25e03af4a2a21020648eb650ef54ca6f9d33e
|
|
BLAKE2b-256 checksum How to use checksums |
bc39b8c512d3e316493ed958c2740532676023ef71cc2ed5d4c61c5b1df99251
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Linux/5.4.109+
|
Release files / ute_wrapper-2.3.1-py3-none-any.whl
| Download URL | ute_wrapper-2.3.1-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a39c0fd3dda892d21ba80169eda72998d14cb2bd5a6d64db782ed3ff4f77c315
|
|
BLAKE2b-256 checksum How to use checksums |
7fee5a6185f9cf344e90e1d7528fdd74c1a356c3f262bab42c0eb515b0aa2335
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Linux/5.4.109+
|
Security for ute-wrapper 2.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.