Skip to main content

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)

Project details


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.2.5.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iec_api-0.2.5-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file iec_api-0.2.5.tar.gz.

File metadata

  • Download URL: iec_api-0.2.5.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.8 Linux/6.5.0-1015-azure

File hashes

Hashes for iec_api-0.2.5.tar.gz
Algorithm Hash digest
SHA256 cdea16c68797c0ebc55feaf70abff4ea88006c4422c53637cbc43add607ce813
MD5 83d2d50e904e5da84d8807e88d15725e
BLAKE2b-256 72a97c40167c4e439e676905c30a3dd3540ae74899ab09fdd2fb6879e0599889

See more details on using hashes here.

File details

Details for the file iec_api-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: iec_api-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 22.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.8 Linux/6.5.0-1015-azure

File hashes

Hashes for iec_api-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7fba912fdef04c831d62ef640b5a182d166254e8d5b2cce92891d7481ca0d164
MD5 9b5a2d35c0906b1a045d203a2f275625
BLAKE2b-256 a7c80e0f30efc1e4fecd82817113afd820740bd0cab6e8099dcfb7d210731887

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page