aiomygas


Nameaiomygas JSON
Version 2.3.0 PyPI version JSON
download
home_page
SummaryAsynchronous Python API For My Gas
upload_time2024-02-27 11:25:42
maintainer
docs_urlNone
authorLizardSystems
requires_python>=3.9.0
licenseMIT License
keywords energy gas
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # aiomygas

Asynchronous Python API for [Мой Газ](https://мойгаз.смородина.онлайн/).

## Installation

Use pip to install the library:

```commandline
pip install aiomygas
```

## Usage

```python

import asyncio
from pprint import pprint

import aiohttp

from aiomygas import SimpleMyGasAuth, MyGasApi


async def main(email: str, password: str) -> None:
    """Create the aiohttp session and run the example."""
    async with aiohttp.ClientSession() as session:
        auth = SimpleMyGasAuth(email, password, session)
        api = MyGasApi(auth)

        data = await api.async_get_accounts()

        pprint(data)


if __name__ == "__main__":
    _email = str(input("Email: "))
    _password = str(input("Password: "))
    asyncio.run(main(_email, _password))

```


This will return accounts list that looks a little like this:

```json
{
    "elsGroup": [
        {
            "els": {
                "id": 1111111,
                "jntAccountNum": "111111111111",
                "isFull": true,
                "alias": "Дом",
                "address": null,
                "epd": {
                    "id": 9,
                    "name": "ЕПД Ростов-на-Дону",
                    "typePaymentCode": "10031",
                    "ENABLE_PAPER_RECEIPT_EPD": 1,
                    "UNITED_PAY_INDICATION_EPD": 0
                },
                "params": null,
                "paperReceiptSetting": {
                    "value": 1,
                    "dateTime": "2023-09-08T19:00:42.421Z"
                }
            },
            "lspu": [
                {
                    "id": 22222222,
                    "account": "222222222222",
                    "isFull": 1,
                    "alias": "",
                    "address": null,
                    "provider": {
                        "id": 41,
                        "name": "Межрегионгаз Ростов-на-Дону",
                        "exchangeType": {
                            "id": 1,
                            "code": "EXCHANGE_TYPE_ONLINE",
                            "name": "Онлайн",
                            "description": "Получение, отправка и обновление информации происходит в рамках настроенного поставщиком времени (как правило, это от 30 сек. до 30 минут)"
                        },
                        "setup": {
                            "ACCOUNT_ATTACH_HINT": "Укажите номер лицевого счета поставщика газа (12 знаков), указанные на квитанции, без пробелов и запятых.\nПример: 370012345678",
                            "ALLOW_ACCESS_TYPE_CHARGE": "1",
                            "ALLOW_ACCESS_TYPE_COUNTER": "1",
                            "ALLOW_ACCESS_TYPE_PIN": "1",
                            "ALLOW_INDICATION_SEND": "1",
                            "ALLOW_INDICATION_SEND_LITE": "1",
                            "ALLOW_PAY": "1",
                            "ENABLE_PAYMENT_EXCHANGE": "1",
                            "ALLOW_PAY_APPLE": "0",
                            "ALLOW_PAY_GOOGLE": "0",
                            "ALLOW_PAY_SBP": "1",
                            "COUNTER_CHECK_DATE": "25",
                            "DAYS_BEFORE_CONTRACT_END": "60",
                            "DAYS_BEFORE_EQUIPMENT_CHECK": "60",
                            "ENABLE_AGREEMENT_SECTION": "1",
                            "ENABLE_APPLICATIONS_SECTION": "1",
                            "ENABLE_CALCULATION_SECTION": "1",
                            "ENABLE_INDICATION_SOURCE": "0",
                            "ENABLE_NOTIFICATION_DOCUMENT": "0",
                            "ENABLE_NOTIFICATION_EQUIPMENT": "1",
                            "ENABLE_PAYMENTS_SECTION": "1",
                            "ENABLE_PAYMENT_DETAILS_FULL": "1",
                            "ENABLE_PAYMENT_DETAILS_LITE": "0",
                            "ENABLE_PRINT_INVOICE": "1",
                            "ENABLE_PRIVILEGES_SECTION": "0",
                            "FULL_REQUEST_EMAIL": "Support_AO@rostovregiongaz.ru",
                            "IS_DEFAULT_FULL": "0",
                            "MAX_CONSUMPTION": "10000",
                            "MESSAGE_AFTER_CONTRACT_END": "Срок действия Вашего договора закончился. Требуется перезаключить договор",
                            "MESSAGE_AFTER_EQUIPMENT_CHECK": "Срок поверки прибора учета закончился. Показания будут отправляться, но не будут приняты к учету поставщиком услуг.",
                            "MESSAGE_BEFORE_CONTRACT_END": "Уважаемый абонент, срок действия Вашего договора заканчивается, пожалуйста не забудьте перезаключить его",
                            "MESSAGE_BEFORE_EQUIPMENT_CHECK": "Уважаемый абонент срок действия поверки Вашего прибора учета скоро заканчивается",
                            "SERVICE_UNAVAILABLE": "0",
                            "SUPPORT_EMAIL": "Support_AO@rostovregiongaz.ru",
                            "ENABLE_COUNTER_RATE": "1",
                            "ENABLE_PAPER_RECEIPT": "1",
                            "DUBLICATE_PAPER_RECEIPT": "1",
                            "ENABLE_NOTIFICATION_INDICATION": "0",
                            "MESSAGE_INDICATION_SECTION": "",
                            "SHOW_PAPER_RECEIPT_OFFER": "1",
                            "SHOW_NORMS_AND_RATES": "1",
                            "ALLOW_INDICATION_ZERO": "1",
                            "KKT_PAYMENT_METHOD_TYPE": "4",
                            "KKT_PAYMENT_SUBJECT_TYPE": "4",
                            "PAYMENT_MESSAGE": "",
                            "ENABLE_PAYMENT_MESSAGE": "0",
                            "ALLOW_AUTOPAY": "1",
                            "CHARGES_INTERVAL_MONTHS_NUMBER": "12",
                            "ALLOW_INDICATION_OVERLAP": "1",
                            "PROVIDER_ALLOW_OFFER_ELS": "1",
                            "ALLOW_INDICATION_CHECK_EXPIRED": "1",
                            "ALLOW_MIR_PAY": "1",
                            "GAS_COUNTER_TARIFF": "0",
                            "ENABLE_PRINT_EPD": null,
                            "ALLOW_CREATE_AGREEMENT_TICKET": null,
                            "DEPARTMET_EMAIL": null,
                            "ALLOW_DOWNLOAD_CHARGES": null,
                            "ALLOW_INDICATION_DATE_CHANGE": null,
                            "ENABLE_EQUIPMENTS_DATE": null,
                            "ENABLE_EQUIPMENTS_SERIAL": null,
                            "ENABLE_ABONENT_FULLNAME": null,
                            "ALLOW_TICKET_INSPECTOR_SEND": null,
                            "RTP_TOPIC_ID": "",
                            "TICKET_SRC_PROVIDER_OPD": ""
                        }
                    },
                    "paperReceiptSetting": {
                        "value": 1,
                        "dateTime": "2023-01-01T10:33:44.437Z"
                    },
                    "hasAutopay": false,
                    "elsAvailable": null
                }
            ],
            "lspuDublicate": []
        },
        {
            "els": {
                "id": 3333333,
                "jntAccountNum": "333333333333",
                "isFull": true,
                "alias": "Офис",
                "address": null,
                "epd": {
                    "id": 9,
                    "name": "ЕПД Ростов-на-Дону",
                    "typePaymentCode": "10031",
                    "ENABLE_PAPER_RECEIPT_EPD": 1,
                    "UNITED_PAY_INDICATION_EPD": 0
                },
                "params": null,
                "paperReceiptSetting": {
                    "value": 1,
                    "dateTime": "2023-09-08T19:00:30.744Z"
                }
            },
            "lspu": [
                {
                    "id": 44444444,
                    "account": "444444444444",
                    "isFull": 1,
                    "alias": "",
                    "address": null,
                    "provider": {
                        "id": 41,
                        "name": "Межрегионгаз Ростов-на-Дону",
                        "exchangeType": {
                            "id": 1,
                            "code": "EXCHANGE_TYPE_ONLINE",
                            "name": "Онлайн",
                            "description": "Получение, отправка и обновление информации происходит в рамках настроенного поставщиком времени (как правило, это от 30 сек. до 30 минут)"
                        },
                        "setup": {
                            "ACCOUNT_ATTACH_HINT": "Укажите номер лицевого счета поставщика газа (12 знаков), указанные на квитанции, без пробелов и запятых.\nПример: 370012345678",
                            "ALLOW_ACCESS_TYPE_CHARGE": "1",
                            "ALLOW_ACCESS_TYPE_COUNTER": "1",
                            "ALLOW_ACCESS_TYPE_PIN": "1",
                            "ALLOW_INDICATION_SEND": "1",
                            "ALLOW_INDICATION_SEND_LITE": "1",
                            "ALLOW_PAY": "1",
                            "ENABLE_PAYMENT_EXCHANGE": "1",
                            "ALLOW_PAY_APPLE": "0",
                            "ALLOW_PAY_GOOGLE": "0",
                            "ALLOW_PAY_SBP": "1",
                            "COUNTER_CHECK_DATE": "25",
                            "DAYS_BEFORE_CONTRACT_END": "60",
                            "DAYS_BEFORE_EQUIPMENT_CHECK": "60",
                            "ENABLE_AGREEMENT_SECTION": "1",
                            "ENABLE_APPLICATIONS_SECTION": "1",
                            "ENABLE_CALCULATION_SECTION": "1",
                            "ENABLE_INDICATION_SOURCE": "0",
                            "ENABLE_NOTIFICATION_DOCUMENT": "0",
                            "ENABLE_NOTIFICATION_EQUIPMENT": "1",
                            "ENABLE_PAYMENTS_SECTION": "1",
                            "ENABLE_PAYMENT_DETAILS_FULL": "1",
                            "ENABLE_PAYMENT_DETAILS_LITE": "0",
                            "ENABLE_PRINT_INVOICE": "1",
                            "ENABLE_PRIVILEGES_SECTION": "0",
                            "FULL_REQUEST_EMAIL": "Support_AO@rostovregiongaz.ru",
                            "IS_DEFAULT_FULL": "0",
                            "MAX_CONSUMPTION": "10000",
                            "MESSAGE_AFTER_CONTRACT_END": "Срок действия Вашего договора закончился. Требуется перезаключить договор",
                            "MESSAGE_AFTER_EQUIPMENT_CHECK": "Срок поверки прибора учета закончился. Показания будут отправляться, но не будут приняты к учету поставщиком услуг.",
                            "MESSAGE_BEFORE_CONTRACT_END": "Уважаемый абонент, срок действия Вашего договора заканчивается, пожалуйста не забудьте перезаключить его",
                            "MESSAGE_BEFORE_EQUIPMENT_CHECK": "Уважаемый абонент срок действия поверки Вашего прибора учета скоро заканчивается",
                            "SERVICE_UNAVAILABLE": "0",
                            "SUPPORT_EMAIL": "Support_AO@rostovregiongaz.ru",
                            "ENABLE_COUNTER_RATE": "1",
                            "ENABLE_PAPER_RECEIPT": "1",
                            "DUBLICATE_PAPER_RECEIPT": "1",
                            "ENABLE_NOTIFICATION_INDICATION": "0",
                            "MESSAGE_INDICATION_SECTION": "",
                            "SHOW_PAPER_RECEIPT_OFFER": "1",
                            "SHOW_NORMS_AND_RATES": "1",
                            "ALLOW_INDICATION_ZERO": "1",
                            "KKT_PAYMENT_METHOD_TYPE": "4",
                            "KKT_PAYMENT_SUBJECT_TYPE": "4",
                            "PAYMENT_MESSAGE": "",
                            "ENABLE_PAYMENT_MESSAGE": "0",
                            "ALLOW_AUTOPAY": "1",
                            "CHARGES_INTERVAL_MONTHS_NUMBER": "12",
                            "ALLOW_INDICATION_OVERLAP": "1",
                            "PROVIDER_ALLOW_OFFER_ELS": "1",
                            "ALLOW_INDICATION_CHECK_EXPIRED": "1",
                            "ALLOW_MIR_PAY": "1",
                            "GAS_COUNTER_TARIFF": "0",
                            "ENABLE_PRINT_EPD": null,
                            "ALLOW_CREATE_AGREEMENT_TICKET": null,
                            "DEPARTMET_EMAIL": null,
                            "ALLOW_DOWNLOAD_CHARGES": null,
                            "ALLOW_INDICATION_DATE_CHANGE": null,
                            "ENABLE_EQUIPMENTS_DATE": null,
                            "ENABLE_EQUIPMENTS_SERIAL": null,
                            "ENABLE_ABONENT_FULLNAME": null,
                            "ALLOW_TICKET_INSPECTOR_SEND": null,
                            "RTP_TOPIC_ID": "",
                            "TICKET_SRC_PROVIDER_OPD": ""
                        }
                    },
                    "paperReceiptSetting": {
                        "value": 1,
                        "dateTime": "2023-01-01T10:32:52.489Z"
                    },
                    "hasAutopay": false,
                    "elsAvailable": null
                }
            ],
            "lspuDublicate": []
        }
    ],
    "lspu": []
}

```

## Timeouts

aiomygas does not specify any timeouts for any requests. You will need to specify them in your own code. We recommend the `asyncio.timeout`:

```python
import asyncio

with asyncio.timeout(10):
    data = await api.async_get_accounts()
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "aiomygas",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9.0",
    "maintainer_email": "",
    "keywords": "energy,gas",
    "author": "LizardSystems",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/7e/cd/cf3ad4aed6e93acf8188d4a5f94ace80f415c2aa95d84f02242b65a5f9b6/aiomygas-2.3.0.tar.gz",
    "platform": "any",
    "description": "# aiomygas\n\nAsynchronous Python API for [\u041c\u043e\u0439 \u0413\u0430\u0437](https://\u043c\u043e\u0439\u0433\u0430\u0437.\u0441\u043c\u043e\u0440\u043e\u0434\u0438\u043d\u0430.\u043e\u043d\u043b\u0430\u0439\u043d/).\n\n## Installation\n\nUse pip to install the library:\n\n```commandline\npip install aiomygas\n```\n\n## Usage\n\n```python\n\nimport asyncio\nfrom pprint import pprint\n\nimport aiohttp\n\nfrom aiomygas import SimpleMyGasAuth, MyGasApi\n\n\nasync def main(email: str, password: str) -> None:\n    \"\"\"Create the aiohttp session and run the example.\"\"\"\n    async with aiohttp.ClientSession() as session:\n        auth = SimpleMyGasAuth(email, password, session)\n        api = MyGasApi(auth)\n\n        data = await api.async_get_accounts()\n\n        pprint(data)\n\n\nif __name__ == \"__main__\":\n    _email = str(input(\"Email: \"))\n    _password = str(input(\"Password: \"))\n    asyncio.run(main(_email, _password))\n\n```\n\n\nThis will return accounts list that looks a little like this:\n\n```json\n{\n    \"elsGroup\": [\n        {\n            \"els\": {\n                \"id\": 1111111,\n                \"jntAccountNum\": \"111111111111\",\n                \"isFull\": true,\n                \"alias\": \"\u0414\u043e\u043c\",\n                \"address\": null,\n                \"epd\": {\n                    \"id\": 9,\n                    \"name\": \"\u0415\u041f\u0414 \u0420\u043e\u0441\u0442\u043e\u0432-\u043d\u0430-\u0414\u043e\u043d\u0443\",\n                    \"typePaymentCode\": \"10031\",\n                    \"ENABLE_PAPER_RECEIPT_EPD\": 1,\n                    \"UNITED_PAY_INDICATION_EPD\": 0\n                },\n                \"params\": null,\n                \"paperReceiptSetting\": {\n                    \"value\": 1,\n                    \"dateTime\": \"2023-09-08T19:00:42.421Z\"\n                }\n            },\n            \"lspu\": [\n                {\n                    \"id\": 22222222,\n                    \"account\": \"222222222222\",\n                    \"isFull\": 1,\n                    \"alias\": \"\",\n                    \"address\": null,\n                    \"provider\": {\n                        \"id\": 41,\n                        \"name\": \"\u041c\u0435\u0436\u0440\u0435\u0433\u0438\u043e\u043d\u0433\u0430\u0437 \u0420\u043e\u0441\u0442\u043e\u0432-\u043d\u0430-\u0414\u043e\u043d\u0443\",\n                        \"exchangeType\": {\n                            \"id\": 1,\n                            \"code\": \"EXCHANGE_TYPE_ONLINE\",\n                            \"name\": \"\u041e\u043d\u043b\u0430\u0439\u043d\",\n                            \"description\": \"\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 (\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u044d\u0442\u043e \u043e\u0442 30 \u0441\u0435\u043a. \u0434\u043e 30 \u043c\u0438\u043d\u0443\u0442)\"\n                        },\n                        \"setup\": {\n                            \"ACCOUNT_ATTACH_HINT\": \"\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u043b\u0438\u0446\u0435\u0432\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430 \u0433\u0430\u0437\u0430 (12 \u0437\u043d\u0430\u043a\u043e\u0432), \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043a\u0432\u0438\u0442\u0430\u043d\u0446\u0438\u0438, \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0438 \u0437\u0430\u043f\u044f\u0442\u044b\u0445.\\n\u041f\u0440\u0438\u043c\u0435\u0440: 370012345678\",\n                            \"ALLOW_ACCESS_TYPE_CHARGE\": \"1\",\n                            \"ALLOW_ACCESS_TYPE_COUNTER\": \"1\",\n                            \"ALLOW_ACCESS_TYPE_PIN\": \"1\",\n                            \"ALLOW_INDICATION_SEND\": \"1\",\n                            \"ALLOW_INDICATION_SEND_LITE\": \"1\",\n                            \"ALLOW_PAY\": \"1\",\n                            \"ENABLE_PAYMENT_EXCHANGE\": \"1\",\n                            \"ALLOW_PAY_APPLE\": \"0\",\n                            \"ALLOW_PAY_GOOGLE\": \"0\",\n                            \"ALLOW_PAY_SBP\": \"1\",\n                            \"COUNTER_CHECK_DATE\": \"25\",\n                            \"DAYS_BEFORE_CONTRACT_END\": \"60\",\n                            \"DAYS_BEFORE_EQUIPMENT_CHECK\": \"60\",\n                            \"ENABLE_AGREEMENT_SECTION\": \"1\",\n                            \"ENABLE_APPLICATIONS_SECTION\": \"1\",\n                            \"ENABLE_CALCULATION_SECTION\": \"1\",\n                            \"ENABLE_INDICATION_SOURCE\": \"0\",\n                            \"ENABLE_NOTIFICATION_DOCUMENT\": \"0\",\n                            \"ENABLE_NOTIFICATION_EQUIPMENT\": \"1\",\n                            \"ENABLE_PAYMENTS_SECTION\": \"1\",\n                            \"ENABLE_PAYMENT_DETAILS_FULL\": \"1\",\n                            \"ENABLE_PAYMENT_DETAILS_LITE\": \"0\",\n                            \"ENABLE_PRINT_INVOICE\": \"1\",\n                            \"ENABLE_PRIVILEGES_SECTION\": \"0\",\n                            \"FULL_REQUEST_EMAIL\": \"Support_AO@rostovregiongaz.ru\",\n                            \"IS_DEFAULT_FULL\": \"0\",\n                            \"MAX_CONSUMPTION\": \"10000\",\n                            \"MESSAGE_AFTER_CONTRACT_END\": \"\u0421\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0412\u0430\u0448\u0435\u0433\u043e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0441\u044f. \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043e\u0433\u043e\u0432\u043e\u0440\",\n                            \"MESSAGE_AFTER_EQUIPMENT_CHECK\": \"\u0421\u0440\u043e\u043a \u043f\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u0438\u0431\u043e\u0440\u0430 \u0443\u0447\u0435\u0442\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0441\u044f. \u041f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f, \u043d\u043e \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043d\u044f\u0442\u044b \u043a \u0443\u0447\u0435\u0442\u0443 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u043c \u0443\u0441\u043b\u0443\u0433.\",\n                            \"MESSAGE_BEFORE_CONTRACT_END\": \"\u0423\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0439 \u0430\u0431\u043e\u043d\u0435\u043d\u0442, \u0441\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0412\u0430\u0448\u0435\u0433\u043e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e\",\n                            \"MESSAGE_BEFORE_EQUIPMENT_CHECK\": \"\u0423\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0439 \u0430\u0431\u043e\u043d\u0435\u043d\u0442 \u0441\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u0432\u0435\u0440\u043a\u0438 \u0412\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u0431\u043e\u0440\u0430 \u0443\u0447\u0435\u0442\u0430 \u0441\u043a\u043e\u0440\u043e \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f\",\n                            \"SERVICE_UNAVAILABLE\": \"0\",\n                            \"SUPPORT_EMAIL\": \"Support_AO@rostovregiongaz.ru\",\n                            \"ENABLE_COUNTER_RATE\": \"1\",\n                            \"ENABLE_PAPER_RECEIPT\": \"1\",\n                            \"DUBLICATE_PAPER_RECEIPT\": \"1\",\n                            \"ENABLE_NOTIFICATION_INDICATION\": \"0\",\n                            \"MESSAGE_INDICATION_SECTION\": \"\",\n                            \"SHOW_PAPER_RECEIPT_OFFER\": \"1\",\n                            \"SHOW_NORMS_AND_RATES\": \"1\",\n                            \"ALLOW_INDICATION_ZERO\": \"1\",\n                            \"KKT_PAYMENT_METHOD_TYPE\": \"4\",\n                            \"KKT_PAYMENT_SUBJECT_TYPE\": \"4\",\n                            \"PAYMENT_MESSAGE\": \"\",\n                            \"ENABLE_PAYMENT_MESSAGE\": \"0\",\n                            \"ALLOW_AUTOPAY\": \"1\",\n                            \"CHARGES_INTERVAL_MONTHS_NUMBER\": \"12\",\n                            \"ALLOW_INDICATION_OVERLAP\": \"1\",\n                            \"PROVIDER_ALLOW_OFFER_ELS\": \"1\",\n                            \"ALLOW_INDICATION_CHECK_EXPIRED\": \"1\",\n                            \"ALLOW_MIR_PAY\": \"1\",\n                            \"GAS_COUNTER_TARIFF\": \"0\",\n                            \"ENABLE_PRINT_EPD\": null,\n                            \"ALLOW_CREATE_AGREEMENT_TICKET\": null,\n                            \"DEPARTMET_EMAIL\": null,\n                            \"ALLOW_DOWNLOAD_CHARGES\": null,\n                            \"ALLOW_INDICATION_DATE_CHANGE\": null,\n                            \"ENABLE_EQUIPMENTS_DATE\": null,\n                            \"ENABLE_EQUIPMENTS_SERIAL\": null,\n                            \"ENABLE_ABONENT_FULLNAME\": null,\n                            \"ALLOW_TICKET_INSPECTOR_SEND\": null,\n                            \"RTP_TOPIC_ID\": \"\",\n                            \"TICKET_SRC_PROVIDER_OPD\": \"\"\n                        }\n                    },\n                    \"paperReceiptSetting\": {\n                        \"value\": 1,\n                        \"dateTime\": \"2023-01-01T10:33:44.437Z\"\n                    },\n                    \"hasAutopay\": false,\n                    \"elsAvailable\": null\n                }\n            ],\n            \"lspuDublicate\": []\n        },\n        {\n            \"els\": {\n                \"id\": 3333333,\n                \"jntAccountNum\": \"333333333333\",\n                \"isFull\": true,\n                \"alias\": \"\u041e\u0444\u0438\u0441\",\n                \"address\": null,\n                \"epd\": {\n                    \"id\": 9,\n                    \"name\": \"\u0415\u041f\u0414 \u0420\u043e\u0441\u0442\u043e\u0432-\u043d\u0430-\u0414\u043e\u043d\u0443\",\n                    \"typePaymentCode\": \"10031\",\n                    \"ENABLE_PAPER_RECEIPT_EPD\": 1,\n                    \"UNITED_PAY_INDICATION_EPD\": 0\n                },\n                \"params\": null,\n                \"paperReceiptSetting\": {\n                    \"value\": 1,\n                    \"dateTime\": \"2023-09-08T19:00:30.744Z\"\n                }\n            },\n            \"lspu\": [\n                {\n                    \"id\": 44444444,\n                    \"account\": \"444444444444\",\n                    \"isFull\": 1,\n                    \"alias\": \"\",\n                    \"address\": null,\n                    \"provider\": {\n                        \"id\": 41,\n                        \"name\": \"\u041c\u0435\u0436\u0440\u0435\u0433\u0438\u043e\u043d\u0433\u0430\u0437 \u0420\u043e\u0441\u0442\u043e\u0432-\u043d\u0430-\u0414\u043e\u043d\u0443\",\n                        \"exchangeType\": {\n                            \"id\": 1,\n                            \"code\": \"EXCHANGE_TYPE_ONLINE\",\n                            \"name\": \"\u041e\u043d\u043b\u0430\u0439\u043d\",\n                            \"description\": \"\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 (\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u044d\u0442\u043e \u043e\u0442 30 \u0441\u0435\u043a. \u0434\u043e 30 \u043c\u0438\u043d\u0443\u0442)\"\n                        },\n                        \"setup\": {\n                            \"ACCOUNT_ATTACH_HINT\": \"\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u043b\u0438\u0446\u0435\u0432\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430 \u0433\u0430\u0437\u0430 (12 \u0437\u043d\u0430\u043a\u043e\u0432), \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043a\u0432\u0438\u0442\u0430\u043d\u0446\u0438\u0438, \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0438 \u0437\u0430\u043f\u044f\u0442\u044b\u0445.\\n\u041f\u0440\u0438\u043c\u0435\u0440: 370012345678\",\n                            \"ALLOW_ACCESS_TYPE_CHARGE\": \"1\",\n                            \"ALLOW_ACCESS_TYPE_COUNTER\": \"1\",\n                            \"ALLOW_ACCESS_TYPE_PIN\": \"1\",\n                            \"ALLOW_INDICATION_SEND\": \"1\",\n                            \"ALLOW_INDICATION_SEND_LITE\": \"1\",\n                            \"ALLOW_PAY\": \"1\",\n                            \"ENABLE_PAYMENT_EXCHANGE\": \"1\",\n                            \"ALLOW_PAY_APPLE\": \"0\",\n                            \"ALLOW_PAY_GOOGLE\": \"0\",\n                            \"ALLOW_PAY_SBP\": \"1\",\n                            \"COUNTER_CHECK_DATE\": \"25\",\n                            \"DAYS_BEFORE_CONTRACT_END\": \"60\",\n                            \"DAYS_BEFORE_EQUIPMENT_CHECK\": \"60\",\n                            \"ENABLE_AGREEMENT_SECTION\": \"1\",\n                            \"ENABLE_APPLICATIONS_SECTION\": \"1\",\n                            \"ENABLE_CALCULATION_SECTION\": \"1\",\n                            \"ENABLE_INDICATION_SOURCE\": \"0\",\n                            \"ENABLE_NOTIFICATION_DOCUMENT\": \"0\",\n                            \"ENABLE_NOTIFICATION_EQUIPMENT\": \"1\",\n                            \"ENABLE_PAYMENTS_SECTION\": \"1\",\n                            \"ENABLE_PAYMENT_DETAILS_FULL\": \"1\",\n                            \"ENABLE_PAYMENT_DETAILS_LITE\": \"0\",\n                            \"ENABLE_PRINT_INVOICE\": \"1\",\n                            \"ENABLE_PRIVILEGES_SECTION\": \"0\",\n                            \"FULL_REQUEST_EMAIL\": \"Support_AO@rostovregiongaz.ru\",\n                            \"IS_DEFAULT_FULL\": \"0\",\n                            \"MAX_CONSUMPTION\": \"10000\",\n                            \"MESSAGE_AFTER_CONTRACT_END\": \"\u0421\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0412\u0430\u0448\u0435\u0433\u043e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0441\u044f. \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043e\u0433\u043e\u0432\u043e\u0440\",\n                            \"MESSAGE_AFTER_EQUIPMENT_CHECK\": \"\u0421\u0440\u043e\u043a \u043f\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u0438\u0431\u043e\u0440\u0430 \u0443\u0447\u0435\u0442\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0441\u044f. \u041f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f, \u043d\u043e \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043d\u044f\u0442\u044b \u043a \u0443\u0447\u0435\u0442\u0443 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u043c \u0443\u0441\u043b\u0443\u0433.\",\n                            \"MESSAGE_BEFORE_CONTRACT_END\": \"\u0423\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0439 \u0430\u0431\u043e\u043d\u0435\u043d\u0442, \u0441\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0412\u0430\u0448\u0435\u0433\u043e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e\",\n                            \"MESSAGE_BEFORE_EQUIPMENT_CHECK\": \"\u0423\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0439 \u0430\u0431\u043e\u043d\u0435\u043d\u0442 \u0441\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u0432\u0435\u0440\u043a\u0438 \u0412\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u0431\u043e\u0440\u0430 \u0443\u0447\u0435\u0442\u0430 \u0441\u043a\u043e\u0440\u043e \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f\",\n                            \"SERVICE_UNAVAILABLE\": \"0\",\n                            \"SUPPORT_EMAIL\": \"Support_AO@rostovregiongaz.ru\",\n                            \"ENABLE_COUNTER_RATE\": \"1\",\n                            \"ENABLE_PAPER_RECEIPT\": \"1\",\n                            \"DUBLICATE_PAPER_RECEIPT\": \"1\",\n                            \"ENABLE_NOTIFICATION_INDICATION\": \"0\",\n                            \"MESSAGE_INDICATION_SECTION\": \"\",\n                            \"SHOW_PAPER_RECEIPT_OFFER\": \"1\",\n                            \"SHOW_NORMS_AND_RATES\": \"1\",\n                            \"ALLOW_INDICATION_ZERO\": \"1\",\n                            \"KKT_PAYMENT_METHOD_TYPE\": \"4\",\n                            \"KKT_PAYMENT_SUBJECT_TYPE\": \"4\",\n                            \"PAYMENT_MESSAGE\": \"\",\n                            \"ENABLE_PAYMENT_MESSAGE\": \"0\",\n                            \"ALLOW_AUTOPAY\": \"1\",\n                            \"CHARGES_INTERVAL_MONTHS_NUMBER\": \"12\",\n                            \"ALLOW_INDICATION_OVERLAP\": \"1\",\n                            \"PROVIDER_ALLOW_OFFER_ELS\": \"1\",\n                            \"ALLOW_INDICATION_CHECK_EXPIRED\": \"1\",\n                            \"ALLOW_MIR_PAY\": \"1\",\n                            \"GAS_COUNTER_TARIFF\": \"0\",\n                            \"ENABLE_PRINT_EPD\": null,\n                            \"ALLOW_CREATE_AGREEMENT_TICKET\": null,\n                            \"DEPARTMET_EMAIL\": null,\n                            \"ALLOW_DOWNLOAD_CHARGES\": null,\n                            \"ALLOW_INDICATION_DATE_CHANGE\": null,\n                            \"ENABLE_EQUIPMENTS_DATE\": null,\n                            \"ENABLE_EQUIPMENTS_SERIAL\": null,\n                            \"ENABLE_ABONENT_FULLNAME\": null,\n                            \"ALLOW_TICKET_INSPECTOR_SEND\": null,\n                            \"RTP_TOPIC_ID\": \"\",\n                            \"TICKET_SRC_PROVIDER_OPD\": \"\"\n                        }\n                    },\n                    \"paperReceiptSetting\": {\n                        \"value\": 1,\n                        \"dateTime\": \"2023-01-01T10:32:52.489Z\"\n                    },\n                    \"hasAutopay\": false,\n                    \"elsAvailable\": null\n                }\n            ],\n            \"lspuDublicate\": []\n        }\n    ],\n    \"lspu\": []\n}\n\n```\n\n## Timeouts\n\naiomygas does not specify any timeouts for any requests. You will need to specify them in your own code. We recommend the `asyncio.timeout`:\n\n```python\nimport asyncio\n\nwith asyncio.timeout(10):\n    data = await api.async_get_accounts()\n```\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Asynchronous Python API For My Gas",
    "version": "2.3.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/lizardsystems/aiomygas/issues",
        "Changelog": "https://github.com/lizardsystems/aiomygas/blob/master/CHANGELOG.md",
        "Documentation": "https://github.com/lizardsystems/aiomygas",
        "Home": "https://github.com/lizardsystems/aiomygas",
        "Repository": "https://github.com/lizardsystems/aiomygas"
    },
    "split_keywords": [
        "energy",
        "gas"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ef49cd9613ba696118b706b6e5d497e0f5cd2f093487048792560c083b79af57",
                "md5": "990f00d8a25c985a78f78db60b9a7b2c",
                "sha256": "4182c3cc652fe6623d59b12c8036ac635bb9a6b8683d8a6a5a87b5ff27034959"
            },
            "downloads": -1,
            "filename": "aiomygas-2.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "990f00d8a25c985a78f78db60b9a7b2c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9.0",
            "size": 22840,
            "upload_time": "2024-02-27T11:25:41",
            "upload_time_iso_8601": "2024-02-27T11:25:41.122220Z",
            "url": "https://files.pythonhosted.org/packages/ef/49/cd9613ba696118b706b6e5d497e0f5cd2f093487048792560c083b79af57/aiomygas-2.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7ecdcf3ad4aed6e93acf8188d4a5f94ace80f415c2aa95d84f02242b65a5f9b6",
                "md5": "c9293e1a74689603e623514297cf608d",
                "sha256": "4005b02dfe8585490a8f2153f5ad2daa48a54cb71091d5f9351b3c6e8bc36491"
            },
            "downloads": -1,
            "filename": "aiomygas-2.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c9293e1a74689603e623514297cf608d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9.0",
            "size": 33777,
            "upload_time": "2024-02-27T11:25:42",
            "upload_time_iso_8601": "2024-02-27T11:25:42.834067Z",
            "url": "https://files.pythonhosted.org/packages/7e/cd/cf3ad4aed6e93acf8188d4a5f94ace80f415c2aa95d84f02242b65a5f9b6/aiomygas-2.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-27 11:25:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lizardsystems",
    "github_project": "aiomygas",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "aiomygas"
}
        
Elapsed time: 2.60879s