Skip to main content

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) |
+------+--------+---------------+--------------------+-------------+-----------------+--------------------+

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aussiebb-0.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aussiebb-0.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file aussiebb-0.2.tar.gz.

File metadata

  • Download URL: aussiebb-0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for aussiebb-0.2.tar.gz
Algorithm Hash digest
SHA256 ef103fb607bfb55724e4ac59f1010d1a91b193e39a5e5bf449dd28ec582eec91
MD5 0f7198118e09e00a56d1eae49f21a67a
BLAKE2b-256 409b57ab8f867ee7aa1d84cbc3669661ff9cae7aa96370a768f6c1e40d2a0db9

See more details on using hashes here.

File details

Details for the file aussiebb-0.2-py3-none-any.whl.

File metadata

  • Download URL: aussiebb-0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for aussiebb-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4142cfaf8348a074a92bb19c640babdf7108a4a45d830f679460a2a9d619f950
MD5 e74a9df7695704b68acb4eec1f737907
BLAKE2b-256 f56cd268b920cf040eaaf1744fa67640294c302a9534d4264836c5ee476f283c

See more details on using hashes here.

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