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.4.tar.gz (7.3 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.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: myconso-0.0.4.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"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.4.tar.gz
Algorithm Hash digest
SHA256 8cb61a01706bedc1ec20544f21274f1df9227946d6ad297bdf2c05e1d84c4f58
MD5 15e21d66b6238b84c08cf2e24c3c299a
BLAKE2b-256 08d75d32f178b4ed119def7e4a0fe0a3c8b17d4190421223d27fe5441aabfad4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: myconso-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 641b13098337d1c8bd08b486808705fe661392298be10de169e2e144d1ea5cb2
MD5 cb43df932c226b01002fb6870105b30e
BLAKE2b-256 bb3ebfdf146985bef171fa5b3445efa4fbe5eb863b48a33575daede50abc5124

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