Metadata-Version: 2.4
Name: iec-api
Version: 0.5.11
Summary: A Python wrapper for Israel Electric Company API
Author: GuyKh
Maintainer-email: Guy Khmelnitsky <guykhmel@gmail.com>
License: MIT
License-File: LICENSE
Keywords: api,electric,iec,israel,python
Requires-Python: >=3.10
Requires-Dist: aiofiles<25.2.0,>=25.1.0
Requires-Dist: aiohttp<4.0.0,>=3.9.1
Requires-Dist: cryptography<100.0.0,>=44.0.0
Requires-Dist: mashumaro<4.0.0,>=3.13
Requires-Dist: pkce<2.0.0,>=1.0.3
Requires-Dist: pyjwt<3.0.0,>=2.8.0
Requires-Dist: pytz<2025.0,>=2024.1
Requires-Dist: requests<3.0.0,>=2.31.0
Provides-Extra: dev
Requires-Dist: pre-commit<5.0.0,>=4.0.0; extra == 'dev'
Requires-Dist: pytest-cov<8.0.0,>=7.0.0; extra == 'dev'
Requires-Dist: pytest<10.0.0,>=9.0.2; extra == 'dev'
Requires-Dist: ruff<0.16.0,>=0.15.0; extra == 'dev'
Description-Content-Type: text/markdown

# iec-api

A python wrapper for Israel Electric Company API

## Module Usage

```python
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](POSTMAN.md)