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.11.tar.gz
(33.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
iec_api-0.4.11-py3-none-any.whl
(52.6 kB
view details)
File details
Details for the file iec_api-0.4.11.tar.gz.
File metadata
- Download URL: iec_api-0.4.11.tar.gz
- Upload date:
- Size: 33.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c217fceb6b2c80e415f69d4de4103e0b1cd7ac420f281b2033021fa14a59d7c
|
|
| MD5 |
f31c16d4189b01897a149a5e47b8ab1c
|
|
| BLAKE2b-256 |
1447acd07721186ac26ba94800fa762478781257f905b89ea936f18375b2b187
|
File details
Details for the file iec_api-0.4.11-py3-none-any.whl.
File metadata
- Download URL: iec_api-0.4.11-py3-none-any.whl
- Upload date:
- Size: 52.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18f50b8ce0d047a22469c83ea6b4a245c01004b2308f1143b8f161a024f66098
|
|
| MD5 |
e8d625d2960450a9b05bf3f7f907014e
|
|
| BLAKE2b-256 |
4d1f1d8eb842727efa829219784dd81f07031248c2e4a2a25cc13d5ea8a09e71
|