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.2.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.2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mykurve-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 7c62bc4910ed85f121fdc5152d5685469222ad1b635a7b369718f841da3b770f
MD5 ca79ab1894be0be26465d98fcfdb6c24
BLAKE2b-256 0b2f7fd58bc9d227ac9d7b0c2a2848e8526353e8f8fb23b2afaaed8e737b0d3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mykurve-0.0.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: mykurve-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 195b47056ff9b72a2183cf0a5ad6a4363afd84bbabfcf01d5e6e1771da2f9c4e
MD5 6c2826d09a2b5890858ebdb0c27bcfed
BLAKE2b-256 02f0f411264064f9bd765c8a5d2e0ceaebfc5d266d5b9d2ae6342f919c42e515

See more details on using hashes here.

Provenance

The following attestation bundles were made for mykurve-0.0.2-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