Skip to main content

Unofficial library to retrieve details of mykurve.com account

Project description

mykurve library

Unofficial async library to retrieve details of https://api.mykurve.com/ or https://www.mykurve.com/ account This was done for personal project but feel free to use on your own risk

Hope will be useful to someone and if there is any issues (what I think there is...) please open PR or issue will try to help/fix in mean time

Note

  • This will work only if you don't have 2FA enabled (2FA is still NOT supported)

TODO:

  • handle 2FA

How to use

import asyncio

from mykurve import MyKurveApi
from mykurve.data_classes import TimeRange

userName = "<your_account>"
password = "your_password"

async def main():
    api = MyKurveApi()

    token = await api.get_token(userName, password)
    print(token)

    account = await api.get_accounts(token.access_token)
    print(account)

    account_info = await api.get_account_info(token.access_token, account.accounts[0].accountNumber)
    print(account_info)

    dashboard = await api.get_dashboard(token.access_token, account.accounts[0].accountNumber)
    print(dashboard)

    dashboard = await api.get_consumption_graph(token.access_token, account.accounts[0].accountNumber, TimeRange.DAY, 0)
    print(dashboard)


if __name__ == "__main__":
    asyncio.run(main())

If you like what I'm doing please support me
"Buy Me A Coffee"

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

mykurve-0.0.3.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

mykurve-0.0.3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file mykurve-0.0.3.tar.gz.

File metadata

  • Download URL: mykurve-0.0.3.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for mykurve-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ec6d14d446cb3fca70ce4675d35a15438f5ebad44b577ed7e972a63abe84e7c1
MD5 18acff4104a4d4944e43ab9727dab8d7
BLAKE2b-256 4f807f3e08a388a8030be45eecff5536f0dedc0a8e66b6ea2c8337fcae675aa2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mykurve-0.0.3.tar.gz:

Publisher: release.yml on ddB0515/mykurve

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mykurve-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mykurve-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for mykurve-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 40a8576bcb09e2638c41b7c0e4179288b7d4d6e7cba3be427d57be1ba75f3605
MD5 f36c7636356542a2a899c159607f31d9
BLAKE2b-256 86316432e6870499e958a76b9a8fb1f352c428ec3800aa333fdb20499ae9009c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mykurve-0.0.3-py3-none-any.whl:

Publisher: release.yml on ddB0515/mykurve

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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