A Python wrapper for Israel Electric Company API
Project description
iec-api
A python wrapper for Israel Electric Company API
Module Usage
from iec_api import iec_client as iec
client = iec.IecClient("123456789")
try:
await client.manual_login() # login with user inputs
except iec.exceptions.IECError as err:
logger.error(f"Failed Login: (Code {err.code}): {err.error}")
raise
customer = await client.get_customer()
print(customer)
contracts = await client.get_contracts()
for contract in contracts:
print(contract)
reading = await client.get_last_meter_reading(customer.bp_number, contracts[0].contract_id)
print(reading)
Postman
To use the API manually through Postman - read Postman Collection Guide
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
iec_api-0.4.4.tar.gz
(34.0 kB
view details)
Built Distribution
iec_api-0.4.4-py3-none-any.whl
(52.2 kB
view details)
File details
Details for the file iec_api-0.4.4.tar.gz
.
File metadata
- Download URL: iec_api-0.4.4.tar.gz
- Upload date:
- Size: 34.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.10 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6090cc4089c85006034101f59ba575a7ceb2307772973d29658b284dee8d6f6 |
|
MD5 | 0842aba62d1e2de2002a81b46931b503 |
|
BLAKE2b-256 | fac317803291f8504d22fcb446544a71becc09474c1ea6486d5c91f2c76be5a5 |
File details
Details for the file iec_api-0.4.4-py3-none-any.whl
.
File metadata
- Download URL: iec_api-0.4.4-py3-none-any.whl
- Upload date:
- Size: 52.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.10 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 357999187a303783b7936ef4bc82c43da115dcb6bff6665da795d22208fc4be7 |
|
MD5 | 30c922ba0c6c0d4df49be8d5673c0a3b |
|
BLAKE2b-256 | 049af80e4ab0b38db1ab841837e6b8c2597b4a558e63fbfece05aa1c8f813a60 |