What is this?
This is a simple python API for the Aussie Broadband customer portal. There's a lot more that can be done with the portal than what I have implemented here, but this was enough to get me what I wanted for now (graphing for usage in prometheus and grafana).
Feel free to drop me a line at mikal@stillhq.com if you want to help expand this.
Installation
You should run this in a venv. Do something like this:
$ python3 -m venv ~/virtualenvs/aussiebb
$ . ~/virtualenvs/aussiebb/bin/activate
$ pip install -U pip
$ pip install -U -r requirements.txt
Usage
A usage example in example.py, but here are the high points. First, install aussiebb from pypi:
$ pip install aussiebb
This code uses environment variables to get your username and password, so set those up:
$ export AUSSIE_USERNAME="fred"
$ export AUSSIE_PASSWORD="banana"
Now run the example:
$ python examples/example.py
You should get output like this (for an example service of course):
$ python3 example.py
You have 0 tickets open
You have 2 orders
+------+--------+---------------+--------------------+-------------+-----------------+--------------------+
| Type | ID | Download (MB) | Remaining | Upload (MB) | Current Outages | Bolt ons |
+------+--------+---------------+--------------------+-------------+-----------------+--------------------+
| NBN | 451493 | 450486 | Unlimited, 24 days | 22537 | 0 | Static IP ($10.00) |
+------+--------+---------------+--------------------+-------------+-----------------+--------------------+
Release files for aussiebb 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aussiebb-0.2.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aussiebb-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.8 kB
Release files / aussiebb-0.2.tar.gz
| Download URL | aussiebb-0.2.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef103fb607bfb55724e4ac59f1010d1a91b193e39a5e5bf449dd28ec582eec91
|
|
BLAKE2b-256 checksum How to use checksums |
409b57ab8f867ee7aa1d84cbc3669661ff9cae7aa96370a768f6c1e40d2a0db9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.4
|
Release files / aussiebb-0.2-py3-none-any.whl
| Download URL | aussiebb-0.2-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4142cfaf8348a074a92bb19c640babdf7108a4a45d830f679460a2a9d619f950
|
|
BLAKE2b-256 checksum How to use checksums |
f56cd268b920cf040eaaf1744fa67640294c302a9534d4264836c5ee476f283c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.4
|