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.5.11.tar.gz
(172.7 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.11-py3-none-any.whl
(67.4 kB
view details)
File details
Details for the file iec_api-0.5.11.tar.gz.
File metadata
- Download URL: iec_api-0.5.11.tar.gz
- Upload date:
- Size: 172.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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 |
0590b8dc6ca632e27abeef544755df05675c49d330416865b9286be48e6c39a6
|
|
| MD5 |
65a5ff96f0ea450549b85defaf4eac2c
|
|
| BLAKE2b-256 |
9055511cfb09d843b4f7a3a46542c5f329f069ce99f7ea5cf88dde72f074c5f1
|
File details
Details for the file iec_api-0.5.11-py3-none-any.whl.
File metadata
- Download URL: iec_api-0.5.11-py3-none-any.whl
- Upload date:
- Size: 67.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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 |
e40680d6d334f7d4327db67a84c1e8f2a04f40580bb304f83b47c783162fa4ad
|
|
| MD5 |
0c76ab964528b35f1d465fe4faa43aca
|
|
| BLAKE2b-256 |
183452feb46d5d1c19a06ea12c474c8d249f3e333fb87c30cef9f76853dc6a95
|