Skip to main content

Async Python client to interact with myconso.net API

Project description

Unofficial async python client for myconso (proxiserve) API

Unofficial fully asynchronous API client for the myconso api behind the Myconso application. To easily retrieve information about your counters (waterhot, watercold, thermal, ...)

Installation

pip install myconso

Getting started

Client

import asyncio
import os
from datetime import datetime
from pprint import pprint

from myconso.api import MyConsoClient

MYCONSO_EMAIL = os.getenv("MYCONSO_EMAIL")
MYCONSO_PASSWORD = os.getenv("MYCONSO_PASSWORD")


async def main():
    async with MyConsoClient(username=MYCONSO_EMAIL, password=MYCONSO_PASSWORD) as c:
        pprint(await c.get_dashboard())
        pprint(await c.get_housing())

        ctrs = await c.get_counters()
        pprint(ctrs)

        pprint(await c.get_meter_info(counter=ctrs[0]["counter"]))

        pprint(await c.get_consumption(fluidtype="waterHot"))

        pprint(
            await c.get_consumption(
                fluidtype="waterHot",
                startdate=datetime(2025, 12, 1),
                enddate=datetime(2025, 12, 4),
            )
        )

        pprint(await c.get_meter(counter=ctrs[0]["counter"]))

        pprint(
            await c.get_meter(
                counter=ctrs[0]["counter"],
                startdate=datetime(2025, 12, 1),
                enddate=datetime(2025, 12, 4),
            )
        )


asyncio.run(main())

cli

.venv/bin/myconsocli --help
usage: myconsocli [-h] [--debug] --email EMAIL --password PASSWORD [--auth] [--dashboard] [--counters] [--housing] [--user] [--meter-info METER_INFO]
                  [--meter METER] [--consumption CONSUMPTION] [--start-date START_DATE] [--end-date END_DATE]

myconso cli

options:
  -h, --help            show this help message and exit
  --debug               enable debug logging
  --email EMAIL         email
  --password PASSWORD   password
  --auth                POST auth/
  --dashboard           GET /secured/consumption/{housing}/dashboard
  --counters            List counters from dashboard
  --housing             GET /secured/housing/{housing}
  --user                GET /secured/users/{user}
  --meter-info METER_INFO
                        GET /secured/meter/{housing}/{fluidType}/{counter}/info
  --meter METER         GET /secured/meter/{housing}/{fluidType}/{counter}
  --consumption CONSUMPTION
                        /secured/consumption/{housing}/{fluidtype}/day
  --start-date START_DATE
                        start date for consumption and meter
  --end-date END_DATE   end date for consumption and meter

.venv/bin/myconsocli --email $MYCONSO_EMAIL --password $MYCONSO_PASSWORD --dashboard
{'currentMonth': {'endDate': '2025-12-13T12:01:00+00:00',
                  'startDate': '2025-12-01T17:25:19+00:00',
                  'values': [{'counters': ['123456'],
                              'fluidType': 'waterHot',
                              'maxValue': 1.0,
                              'meterType': 'waterHot',
                              'minValue': 1.0,
                              'unit': 'm3',
                              'value': 1.0,
                              'weightedValue': None},
                             }

.venv/bin/myconsocli --email $MYCONSO_EMAIL --password $MYCONSO_PASSWORD --meter-info 123456789
{}

.venv/bin/myconsocli --email $MYCONSO_EMAIL --password $MYCONSO_PASSWORD --meter 123456789 --start-date 2025-11-01 --end-date 2025-11-05
{}

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

myconso-0.0.15.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

myconso-0.0.15-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file myconso-0.0.15.tar.gz.

File metadata

  • Download URL: myconso-0.0.15.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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":null}

File hashes

Hashes for myconso-0.0.15.tar.gz
Algorithm Hash digest
SHA256 5e77ef9afe0737975b1a95ddbbdcb7b8d8c183866b1f2ab297be88fa34178318
MD5 8179bed6c921cfae94fc9e835a830f86
BLAKE2b-256 c254d09bc652987ea07671425da6fa93dc1a82d7b5702d774dc1f927f0caf73c

See more details on using hashes here.

File details

Details for the file myconso-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: myconso-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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":null}

File hashes

Hashes for myconso-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 f9a6d146f41cadbf2bd3911e722a2f28de79ff6fdd85cca8cf57619734976d77
MD5 700a6d0c8f0494bece59ca9ec6f8ec76
BLAKE2b-256 7ed6903fce6942622d7eee1f1b3e36aa0cf2271bcd3e00c01832ecccc2712d20

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