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
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.5.15.tar.gz
(192.4 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.5.15-py3-none-any.whl
(68.5 kB
view details)
File details
Details for the file iec_api-0.5.15.tar.gz.
File metadata
- Download URL: iec_api-0.5.15.tar.gz
- Upload date:
- Size: 192.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb740ba66f321cba32b545524f66320a996e6fa6c675e2dfd617caaed9e71de9
|
|
| MD5 |
afcedf705271e3219b9f7e90f94ac037
|
|
| BLAKE2b-256 |
cbcbe437e3c5ff78ceb60e0b2bb4f277e039456db01faf746862057cd058d6fe
|
File details
Details for the file iec_api-0.5.15-py3-none-any.whl.
File metadata
- Download URL: iec_api-0.5.15-py3-none-any.whl
- Upload date:
- Size: 68.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8901471f4606dca409de56267d6bb7a4895aad326cfc1933248518704f2e1420
|
|
| MD5 |
6abfd42b79fe8969138ed26dbb5dde61
|
|
| BLAKE2b-256 |
ee10ed9f582570646f32cb7bb0bd645f03f26976b0e0359d9a651160186380a4
|