{"id":40420963,"url":"https://github.com/vrachieru/eon-api","last_synced_at":"2026-01-20T15:08:05.662Z","repository":{"id":75099319,"uuid":"86148447","full_name":"vrachieru/eon-api","owner":"vrachieru","description":"E.ON Myline client portal API wrapper.","archived":false,"fork":false,"pushed_at":"2018-11-18T23:26:08.000Z","size":12,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-01-27T18:43:15.184Z","etag":null,"topics":["api","api-client","api-wrapper","bills","electricity","eon","gas","myline","romania","utility"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vrachieru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-03-25T10:07:41.000Z","updated_at":"2023-10-31T12:17:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e9dd4ca-b9d9-4e14-b85f-d280afa156c0","html_url":"https://github.com/vrachieru/eon-api","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"769c56a9a64501a738394db4139509b47af723ad"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vrachieru/eon-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vrachieru%2Feon-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vrachieru%2Feon-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vrachieru%2Feon-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vrachieru%2Feon-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vrachieru","download_url":"https://codeload.github.com/vrachieru/eon-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vrachieru%2Feon-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28606139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T14:45:23.139Z","status":"ssl_error","status_checked_at":"2026-01-20T14:44:16.929Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-client","api-wrapper","bills","electricity","eon","gas","myline","romania","utility"],"created_at":"2026-01-20T15:08:05.594Z","updated_at":"2026-01-20T15:08:05.656Z","avatar_url":"https://github.com/vrachieru.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/5860071/48424356-2569ae80-e76b-11e8-9ccf-782510e54366.jpg\" width=\"200px\" /\u003e\n    \u003cbr/\u003e\n    \u003ca href=\"https://github.com/vrachieru/eon-api/releases/latest\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/version-1.0.0-brightgreen.svg?style=flat-square\" alt=\"Version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://travis-ci.org/vrachieru/eon-api\"\u003e\n        \u003cimg src=\"https://img.shields.io/travis/vrachieru/eon-api.svg?style=flat-square\" alt=\"Version\"\u003e\n    \u003c/a\u003e\n    \u003cbr/\u003e\n    E.ON Myline API wrapper\n\u003c/p\u003e\n\n## Features\n\n* Read messages\n* Get invoices\n* Download invoices\n\n## Install\n\n```bash\n$ pip3 install git+https://github.com/vrachieru/eon-api.git\n```\nor\n```bash\n$ git clone https://github.com/vrachieru/eon-api.git\n$ pip3 install ./eon-api\n```\n\n## Usage\n\n### Reading messages\n\n```python\nfrom eon import EON\n\neon = EON('username', 'password')\n\nmessage_page = eon.get_inbox()\n\nprint ('Page size: %s' % message_page.page_size)\nprint ('Start index: %s' % message_page.start_index)\n\nprint ('Total messages: %s' % message_page.total_count)\nprint ('Unread messages: %s' % message_page.unread_count)\n\nis_unread = lambda message: not message.read\nunread_messages = filter(is_unread, message_page.messages)\n\nfor message in unread_messages:\n    message = eon.get_message(message.id)\n    print('Id: %s' % message.id)\n    print('Subject: %s' % message.subject)\n    print('Date: %s' % message.date)\n    print('Body: %s' % message.body)\n\n```\n\n```bash\n$ python3 messages.py\n\nPage size: 1\nStart index: 0\n\nTotal messages: 128\nUnread messages: 1\n\nId: 000000000\nSubject: Bun venit!\nDate: 2018-11-13 15:06:15\nBody: 'Stimate client,\\nBine ai venit pe portalul E.ON Myline!\\nLinia ta direct\\xc4\\x83 cu noi \\xc3\\xae\\xc5\\xa3i ofer\\xc4\\x83:\\nVizualizare \\xc5\\x9fi desc\\xc4\\x83rcare a facturii \\xc3\\xaen format electronic (prin activarea serviciului de factur\\xc4\\x83 electronic\\xc4\\x83)Notificare pe e-mail la emiterea facturii electronicePlata facturilor E.ON cu cardul pe platforma E.ON Myline f\\xc4\\x83r\\xc4\\x83 niciun comisionTrimiterea indexului contorului de gaze naturale \\xc5\\x9fi energie electric\\xc4\\x83 (dac\\xc4\\x83 a\\xc5\\xa3i optat pentru autocitirea contorului)Informa\\xc5\\xa3ii cu privire la verificarea periodic\\xc4\\x83 \\xc5\\x9fi revizia tehnic\\xc4\\x83 a instala\\xc5\\xa3iei tale de gaze naturaleGestionarea programului/conven\\xc5\\xa3iei de consumAbonarea la newsletter\\xc3\\x8entre\\xc5\\xa3inerea \\xc5\\x9fi actualizarea datelor tale de autentificarePosibilitatea modific\\xc4\\x83rii datelor de coresponden\\xc5\\xa3\\xc4\\x83\\n\\nPo\\xc5\\xa3i consulta ghidul utilizatorului E.ON Myline aici.\\nEchipa E.ON Myline'\n\n...\n```\n\n### Reading invoices\n\n```python\nfrom eon import EON\n\neon = EON('username', 'password')\n\ninvoice_page = eon.get_invoices('000000000000') # account_contract (you can find this in account settings via app; different for gas and electricity)\n\nprint('Total invoices: {}\\n'.format(invoice_page.total_count))\n\nprint('Account balance: {}'.format(invoice_page.account_balance))\nprint('Unpaid value: {}\\n'.format(invoice_page.unpaid_value))\n\nfor invoice in invoice_page.invoices:\n    print('Number: {}'.format(invoice.number))\n    print('Fiscal number: {}'.format(invoice.fiscal_number))\n    print('Emission date: {}'.format(invoice.emission_date))\n    print('Expiry date: {}'.format(invoice.expiry_date))\n    print('Type: {}'.format(invoice.type.name))\n    print('Value: {}'.format(invoice.value))\n    print('Balance: {}'.format(invoice.balance))\n    print('Payment status: {}'.format(invoice.payment_status.name))\n    print('Bar code: {}'.format(invoice.bar_code))\n    print('Electronic: {}'.format(invoice.electronic))\n\n    for meter_detail in eon.get_invoice_meter_details(invoice.number):\n        print('Consumption: {} m3 ({} KWH)'.format(meter_detail.consumption_cubic_meters, meter_detail.consumption_kwh))\n        print('Old index: {}'.format(meter_detail.old_index))\n        print('New index: {}'.format(meter_detail.new_index))\n        print('Period: {} - {}'.format(meter_detail.period[0], meter_detail.period[1]))\n```\n\n```bash\n$ python read_invoices.py\nTotal invoices: 18\n\nAccount balance: 203.99\nUnpaid value: 203.99\n\nNumber: 000000000000\nFiscal number: 0000000000000000\nEmission date: 2018-11-15 00:00:00\nExpiry date: 2018-12-17 00:00:00\nType: CONSUMPTION\nValue: 203.99\nBalance: 203.99\nPayment status: UNPAID\nBarcode: 000000000000000000000000000000000000000\nElectronic: False\nConsumption: 113 m3 (1209.326 KWH)\nOld index: 2595\nNew index: 2708\nPeriod: 2018-10-03 00:00:00 - 2018-11-05 00:00:00\n\n...\n```\n\n### Downloading invoices\n\n```python\nfrom eon import EON\n\neon = EON('username', 'password')\n\ninvoice_page = eon.get_invoices('000000000000') # account_contract (you can find this in account settings via app; different for gas and electricity)\n\ndownload_path = '/home/user/documents/invoices/eon'\n\nfor invoice in invoice_page.invoices:\n    print ('Downloading invoice #{}'.format(invoice.number))\n    eon.download_invoice(invoice.number, download_path) # NOTE: This only works if you have electronic invoice activated.\n```\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvrachieru%2Feon-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvrachieru%2Feon-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvrachieru%2Feon-api/lists"}