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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mykurve-0.0.4.tar.gz
  • Upload date:
  • Size: 9.1 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.4.tar.gz
Algorithm Hash digest
SHA256 83253f659529a56c37d9302a49fdeb71edcd66016eec22177355224c498cec10
MD5 654b93d3b16e36beafdbbaf21520bad5
BLAKE2b-256 fb2f527507bde9ed761f269d7cbf343dffcd777b0ef124ddbe176cf1059953c8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mykurve-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.8 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b43e2b8e92ef9fbef36080a81b80c48cecb54ebdbb64d27b1e4d14fb54341ce9
MD5 62878997921e4e818c931364e5f72e29
BLAKE2b-256 090bd2891ba3f8924267cb62b3694e826e61f68531c54cd7aa7c91a0a7441d8e

See more details on using hashes here.

Provenance

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