From fc012f703e4a6aab9d61c555299d7b0c5d1e0c99 Mon Sep 17 00:00:00 2001 From: Yass Eltahir <15998949+diabolical-ninja@users.noreply.github.com> Date: Wed, 8 Jun 2022 12:48:49 +1000 Subject: [PATCH 1/3] Fix version number --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 228b7d1..387fb8c 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -7,6 +7,6 @@ jobs: draft_release: runs-on: ubuntu-latest steps: - - uses: release-drafter/release-drafter@v5.20 + - uses: release-drafter/release-drafter@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 9639dbfdff5adb9c1b0d921da52f18d2b28cfd1a Mon Sep 17 00:00:00 2001 From: Yass Eltahir <15998949+diabolical-ninja@users.noreply.github.com> Date: Wed, 8 Jun 2022 12:59:48 +1000 Subject: [PATCH 2/3] Clean up typo in docs & add sample output formatting --- README.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 67385f7..4803055 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ [![Documentation Status](https://readthedocs.org/projects/nbnpy/badge/?version=latest)](https://nbnpy.readthedocs.io/en/latest/?badge=latest) - +
This package provides an unofficial wrapper of the National Broadband Network's (NBN) API. It allows you to programatically lookup address's and examine connection details such as the connection type (FTTP, HFC, etc), service type, connection status and more.

@@ -24,7 +24,7 @@ This package provides an unofficial wrapper of the National Broadband Network's Install `nbnpy` from the Python Package Index: ```console -$ pip install nbn +$ pip install nbnpy ``` ## Requirements @@ -50,6 +50,60 @@ location_info = nbn_client.location_information(location_id) pprint.pprint(location_info) ``` +
+ Location Info Output + + ```json + { + "addressDetail": { + "TC2SME": true, + "address1": "Unit 1 32 Flinders St", + "address2": "Melbourne VIC 3000 Australia", + "altReasonCode": "NULL_NA", + "cbdpricing": true, + "coatChangeReason": "", + "disconnectionDate": "Sep 2020", + "disconnectionStatus": "PAST", + "ee": true, + "eec": 1, + "formattedAddress": "UNIT 1 32 FLINDERS ST MELBOURNE VIC 3000 Australia", + "frustrated": false, + "id": "LOC000175010671", + "latitude": -37.81540657, + "longitude": 144.97344433, + "reasonCode": "FTTC_SA", + "serviceStatus": "available", + "serviceType": "Fixed line", + "speedTierAvailability": true, + "techFlip": "", + "techType": "FTTC", + "wp1DisconnectionDate": "11 September 2020", + "wp1DisconnectionStatus": "PAST", + "wp2DisconnectionDate": "11 September 2020", + "wp2DisconnectionStatus": "PAST", + "wp3DisconnectionDate": "11 September 2020", + "wp3DisconnectionStatus": "PAST", + "wp4DisconnectionDate": "11 September 2020", + "wp4DisconnectionStatus": "PAST", + "zeroBuildCost": true + }, + "servingArea": { + "csaId": "CSA300000010316", + "description": "Exhibition", + "rfsMessage": "Sep 2018", + "serviceCategory": "brownfields", + "serviceStatus": "available", + "serviceType": "Fixed line", + "techType": "FTTC" + }, + "timestamp": 1654656817504 + } + ``` +
+ + + + ## Building the Project This package uses `poetry` and `nox` for package management and building. From 240023d78d992f9abf72bf42e04098f862699efc Mon Sep 17 00:00:00 2001 From: Yass Eltahir <15998949+diabolical-ninja@users.noreply.github.com> Date: Wed, 8 Jun 2022 13:17:08 +1000 Subject: [PATCH 3/3] Add different style for dark & light theme code highlighting --- docs/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 6c20a49..6804c83 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -8,6 +8,8 @@ language = "en" html_theme = "furo" autodoc_typehints = "description" +pygments_style = "sphinx" +pygments_dark_style = "monokai" extensions = [