AuroraPlus.py is a package to pull data from https://api.auroraenergy.com.au/api. To use the Aurora+ API you need a valid account with Aurora.
Install
- Install Python 3.9 (for all users)
- Pip install requests (Requests is a requirement of AuroraPlus)
- pip install auroraplus
Usage
Connect to Aurora+ API:
import auroraplus
AuroraPlus = auroraplus.api("user.name@outlook.com", "password")
To get information about your current account use the following:
AuroraPlus.getcurrent()
getcurrent() gets the following data:
EstimatedBalance - This is shown in the Aurora+ app as 'Balance'
UsageDaysRemaining - This is shown in the Aurora+ app as 'Days Prepaid'
AverageDailyUsaged
HasSolar
Address
AmountOwed
ActualBalance
UnbilledAmount
BillTotalAmount
NumberOfUnpaidBills
BillOverDueAmount
An example getting specific data with getcurrent:
import auroraplus
AuroraPlus = auroraplus.api("user.name@outlook.com", "password")
if (not AuroraPlus.Error):
AuroraPlus.getcurrent()
print(AuroraPlus.AmountOwed)
else:
print(AuroraPlus.Error)
To get usage data use the following, this returns all available data in json format for each timespan:
AuroraPlus.getday()
AuroraPlus.getweek()
AuroraPlus.getmonth()
AuroraPlus.getquarter()
AuroraPlus.getyear()
Full example:
AuroraPlus = auroraplus.api("user.name@outlook.com", "password")
if (not AuroraPlus.Error):
AuroraPlus.getcurrent()
print(AuroraPlus.AmountOwed)
AuroraPlus.getday()
print(AuroraPlus.day)
AuroraPlus.getweek()
print(AuroraPlus.week)
AuroraPlus.getmonth()
print(AuroraPlus.month
AuroraPlus.getyear()
print(AuroraPlus.year)
else:
print(AuroraPlus.Error)
Metadata
Release files for auroraplus 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| auroraplus-1.0.0.tar.gz | 4.0 kB | Without provenance | Details for auroraplus-1.0.0.tar.gz |
Release files / auroraplus-1.0.0.tar.gz
| Download URL | auroraplus-1.0.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5d1d458db324f9ae641bcea11869ed07bd9334d142a9a0f26438cb958adf03b
|
|
BLAKE2b-256 checksum How to use checksums |
49f0b736fde850e1d8a1d918c42926e8121d495bd424d6dcc79fe01d4b479bc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Security for auroraplus 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.