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())
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83253f659529a56c37d9302a49fdeb71edcd66016eec22177355224c498cec10
|
|
| MD5 |
654b93d3b16e36beafdbbaf21520bad5
|
|
| BLAKE2b-256 |
fb2f527507bde9ed761f269d7cbf343dffcd777b0ef124ddbe176cf1059953c8
|
Provenance
The following attestation bundles were made for mykurve-0.0.4.tar.gz:
Publisher:
release.yml on ddB0515/mykurve
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mykurve-0.0.4.tar.gz -
Subject digest:
83253f659529a56c37d9302a49fdeb71edcd66016eec22177355224c498cec10 - Sigstore transparency entry: 157650543
- Sigstore integration time:
-
Permalink:
ddB0515/mykurve@1375fef81c7b6d500422b7f97ec7e4d70023fddd -
Branch / Tag:
refs/tags/0.0.4 - Owner: https://github.com/ddB0515
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1375fef81c7b6d500422b7f97ec7e4d70023fddd -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b43e2b8e92ef9fbef36080a81b80c48cecb54ebdbb64d27b1e4d14fb54341ce9
|
|
| MD5 |
62878997921e4e818c931364e5f72e29
|
|
| BLAKE2b-256 |
090bd2891ba3f8924267cb62b3694e826e61f68531c54cd7aa7c91a0a7441d8e
|
Provenance
The following attestation bundles were made for mykurve-0.0.4-py3-none-any.whl:
Publisher:
release.yml on ddB0515/mykurve
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mykurve-0.0.4-py3-none-any.whl -
Subject digest:
b43e2b8e92ef9fbef36080a81b80c48cecb54ebdbb64d27b1e4d14fb54341ce9 - Sigstore transparency entry: 157650544
- Sigstore integration time:
-
Permalink:
ddB0515/mykurve@1375fef81c7b6d500422b7f97ec7e4d70023fddd -
Branch / Tag:
refs/tags/0.0.4 - Owner: https://github.com/ddB0515
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1375fef81c7b6d500422b7f97ec7e4d70023fddd -
Trigger Event:
push
-
Statement type: