pyaussiebb


Namepyaussiebb JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://github.com/yaleman/pyaussiebb
SummaryAussie Broadband API module
upload_time2024-09-08 14:09:18
maintainerNone
docs_urlNone
authorJames Hodgkinson
requires_python<4.0,>=3.9
licenseMIT
keywords api aussie broadband internet
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyAussieBB

This is a very simple module for interacting with the Aussie Broadband APIs.

![ruff](https://github.com/yaleman/aussiebb/actions/workflows/pylint.yml/badge.svg)
![mypy](https://github.com/yaleman/aussiebb/actions/workflows/mypy.yml/badge.svg)
![pytest](https://github.com/yaleman/aussiebb/actions/workflows/pytest.yml/badge.svg)
![Shellcheck](https://github.com/yaleman/aussiebb/actions/workflows/shellcheck.yml/badge.svg)

## Usage

```shell
pip install --user pyaussiebb
python
>>> from aussiebb import AussieBB
>>> account = AussieBB(username, password)
>>> account.get_services()
[{allyourservicedetails}]
```

For more, check out the docs.

## AsyncIO version

You can replace `from aussiebb import AussieBB` with `from aussiebb.asyncio import AussieBB` and you'll get an `aiohttp`-powered version. The only difference in this case is that you have to explicitly call `login()` for reasons.

If you hit the rate limit it'll raise a `RateLimit` exception. I haven't put that functionality into the blocking version yet, since ... that tends not to hit it. 🤣

## Development

### Example service tests I've seen

All the "endpoints" below should be tacked onto `aussiebb.const.BASEURL['api']`.

**Warning:** `/nbn/{service_id}/connection` seems to have both a GET and POST method endpoint - tests on other endpoints may be similar.

These can be run by using `AussieBB.run_test()` with the string after the last forward-slash as the "test" - ie, `connection` or `linestate`.

#### HFC

These are entirely untested so far.

| Endpoint | Method | Name | Description |
| --- | --- | --- | --- |
| `/nbn/{service_id}/connection` | Probably GET | Check Connection | Check to see if your service is currently connected |
| `/nbn/{service_id}/connection` | Probably POST | Kick Connection | Kick your current session and force your device to reauthenticate |
| `/tests/{service_id}/loopback` | Probably POST | Loopback Test | This will test the connectivity between the point NBN’s network transitions to ours and to the closest point to your property. Usually either the Network Termination Device or Node. |
| `/tests/{service_id}/ntdstatus` | Probably POST | NTD Status | An NTD Status will show you the operational state of the Network Termination Device (NTD). The test will also show if the NTD is detecting the wired connection from your router. |

#### FTTC

| Endpoint | Method | Name | Description |
| --- | --- | --- | --- |
| `/nbn/{service_id}/connection` | GET |Check Connection | Check to see if your service is currently connected |
| `/nbn/{service_id}/connection`  | Probably POST |Kick Connection | Kick your current session and force your device to reauthenticate |
| `/tests/{service_id}/dpuportreset` | Probably POST |DPU Port Reset | Reset the Port on the DPU (Distribution Point Unit) along with clearing any errors that maybe causing issues with connectivity.  |
| `/tests/{service_id}/dpuportstatus` | POST |DPU Port Status | A DPU (Distribution Point Unit) port status will show if the NCD (Network Connection Device) is providing power to the DPU. It will also state if the NCD (Network Connection Device) is in sync. |
| `/tests/{service_id}/dpustatus` | POST |DPU Status | This will provide if the DPU (Distribution Point Unit) is currently being powered. |
| `/tests/{service_id}/loopback` | POST |Loopback Test | This will test the connectivity between the point NBN’s network transitions to ours and to the closest point to your property. Usually either the Network Termination Device or Node. |
| `/tests/{service_id}/ncdportreset` | Probably POST |NCD Port Reset | Reset the gateway port on your NCD (Network Connection Device). |
| `/tests/{service_id}/ncdreset` | Probably POST |NCD Reset | This will remotely restart your Network Termination Device. |

#### FTTN

| Endpoint | Method | Name | Description |
|  --- | --- | --- | --- |
| `/nbn/{service_id}/connection` | GET | Check Connection | Check to see if your service is currently connected |
| `/nbn/{service_id}/connection` | Probably POST | Kick Connection | Kick your current session and force your device to reauthenticate |
| `/tests/{service_id}/linestate` | POST | Line State | A line state test will determine if you have “sync” (connection) to the node. If the service is in sync this test will also return your maximum and current attainable transfer rate. |
| `/tests/{service_id}/loopback` | POST | Loopback Test | This will test the connectivity between the point NBN’s network transitions to ours and to the closest point to your property. Usually either the Network Termination Device or Node. |
| `/tests/{service_id}/portreset` | Probably POST | Port Reset | This will reset the connection from the Node and also clear errors that may be causing issues with gaining sync. |
| `/tests/{service_id}/stabilityprofile` | Probably POST | Stability Profile | This will apply changes to your FTTN service including allowing increased noise to occur before making the connection unstable. This will cause your speeds to degrade as a result, but in turn making the service more stable. For NBN to investigate a fault this profile needs to be applied and a minimum of 5 dropouts recorded over a 24hr period on NBN's systems before a dropout fault can be raised |

#### FTTP

These are as-yet untested.

| Endpoint | Method | Name | Description |
|  --- | --- | --- | --- |
| `/nbn/{service_id}/connection` | Probably GET | Check Connection | Check to see if your service is currently connected |
| `/nbn/{service_id}/connection` | Probably POST | Kick Connection | Kick your current session and force your device to reauthenticate |
| `/tests/{service_id}/loopback` | Probably POST | Loopback Test | This will test the connectivity between the point NBN’s network transitions to ours and to the closest point to your property. Usually either the Network Termination Device or Node. |
| `/tests/{service_id}/portreset` | Probably POST | Port Reset | This will reset the connection from the Node and also clear errors that may be causing issues with gaining sync. |
| `/tests/{service_id}/unidstatus` | Probably POST | UNI-D Status | UNI-D Status will show if the UNI-D port you are currently using has a router connected to it. This will also provide the Link speed your router and UNI-D port are connected at Eg, 100mbit or 1gbit. You will also see the MAC address of the currently connected router. |

## Changelog

See [CHANGELOG.md](CHANGELOG.md)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yaleman/pyaussiebb",
    "name": "pyaussiebb",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "api, aussie, broadband, internet",
    "author": "James Hodgkinson",
    "author_email": "james@terminaloutcomes.com",
    "download_url": "https://files.pythonhosted.org/packages/c1/17/e184bc61a7a40e550ce7f9635c1c5dd7c3043dc42a27053b5d602e592e1b/pyaussiebb-0.1.4.tar.gz",
    "platform": null,
    "description": "# pyAussieBB\n\nThis is a very simple module for interacting with the Aussie Broadband APIs.\n\n![ruff](https://github.com/yaleman/aussiebb/actions/workflows/pylint.yml/badge.svg)\n![mypy](https://github.com/yaleman/aussiebb/actions/workflows/mypy.yml/badge.svg)\n![pytest](https://github.com/yaleman/aussiebb/actions/workflows/pytest.yml/badge.svg)\n![Shellcheck](https://github.com/yaleman/aussiebb/actions/workflows/shellcheck.yml/badge.svg)\n\n## Usage\n\n```shell\npip install --user pyaussiebb\npython\n>>> from aussiebb import AussieBB\n>>> account = AussieBB(username, password)\n>>> account.get_services()\n[{allyourservicedetails}]\n```\n\nFor more, check out the docs.\n\n## AsyncIO version\n\nYou can replace `from aussiebb import AussieBB` with `from aussiebb.asyncio import AussieBB` and you'll get an `aiohttp`-powered version. The only difference in this case is that you have to explicitly call `login()` for reasons.\n\nIf you hit the rate limit it'll raise a `RateLimit` exception. I haven't put that functionality into the blocking version yet, since ... that tends not to hit it. \ud83e\udd23\n\n## Development\n\n### Example service tests I've seen\n\nAll the \"endpoints\" below should be tacked onto `aussiebb.const.BASEURL['api']`.\n\n**Warning:** `/nbn/{service_id}/connection` seems to have both a GET and POST method endpoint - tests on other endpoints may be similar.\n\nThese can be run by using `AussieBB.run_test()` with the string after the last forward-slash as the \"test\" - ie, `connection` or `linestate`.\n\n#### HFC\n\nThese are entirely untested so far.\n\n| Endpoint | Method | Name | Description |\n| --- | --- | --- | --- |\n| `/nbn/{service_id}/connection` | Probably GET | Check Connection | Check to see if your service is currently connected |\n| `/nbn/{service_id}/connection` | Probably POST | Kick Connection | Kick your current session and force your device to reauthenticate |\n| `/tests/{service_id}/loopback` | Probably POST | Loopback Test | This will test the connectivity between the point NBN\u2019s network transitions to ours and to the closest point to your property. Usually either the Network Termination Device or Node. |\n| `/tests/{service_id}/ntdstatus` | Probably POST | NTD Status | An NTD Status will show you the operational state of the Network Termination Device (NTD). The test will also show if the NTD is detecting the wired connection from your router. |\n\n#### FTTC\n\n| Endpoint | Method | Name | Description |\n| --- | --- | --- | --- |\n| `/nbn/{service_id}/connection` | GET |Check Connection | Check to see if your service is currently connected |\n| `/nbn/{service_id}/connection`  | Probably POST |Kick Connection | Kick your current session and force your device to reauthenticate |\n| `/tests/{service_id}/dpuportreset` | Probably POST |DPU Port Reset | Reset the Port on the DPU (Distribution Point Unit) along with clearing any errors that maybe causing issues with connectivity.  |\n| `/tests/{service_id}/dpuportstatus` | POST |DPU Port Status | A DPU (Distribution Point Unit) port status will show if the NCD (Network Connection Device) is providing power to the DPU. It will also state if the NCD (Network Connection Device) is in sync. |\n| `/tests/{service_id}/dpustatus` | POST |DPU Status | This will provide if the DPU (Distribution Point Unit) is currently being powered. |\n| `/tests/{service_id}/loopback` | POST |Loopback Test | This will test the connectivity between the point NBN\u2019s network transitions to ours and to the closest point to your property. Usually either the Network Termination Device or Node. |\n| `/tests/{service_id}/ncdportreset` | Probably POST |NCD Port Reset | Reset the gateway port on your NCD (Network Connection Device). |\n| `/tests/{service_id}/ncdreset` | Probably POST |NCD Reset | This will remotely restart your Network Termination Device. |\n\n#### FTTN\n\n| Endpoint | Method | Name | Description |\n|  --- | --- | --- | --- |\n| `/nbn/{service_id}/connection` | GET | Check Connection | Check to see if your service is currently connected |\n| `/nbn/{service_id}/connection` | Probably POST | Kick Connection | Kick your current session and force your device to reauthenticate |\n| `/tests/{service_id}/linestate` | POST | Line State | A line state test will determine if you have \u201csync\u201d (connection) to the node. If the service is in sync this test will also return your maximum and current attainable transfer rate. |\n| `/tests/{service_id}/loopback` | POST | Loopback Test | This will test the connectivity between the point NBN\u2019s network transitions to ours and to the closest point to your property. Usually either the Network Termination Device or Node. |\n| `/tests/{service_id}/portreset` | Probably POST | Port Reset | This will reset the connection from the Node and also clear errors that may be causing issues with gaining sync. |\n| `/tests/{service_id}/stabilityprofile` | Probably POST | Stability Profile | This will apply changes to your FTTN service including allowing increased noise to occur before making the connection unstable. This will cause your speeds to degrade as a result, but in turn making the service more stable. For NBN to investigate a fault this profile needs to be applied and a minimum of 5 dropouts recorded over a 24hr period on NBN's systems before a dropout fault can be raised |\n\n#### FTTP\n\nThese are as-yet untested.\n\n| Endpoint | Method | Name | Description |\n|  --- | --- | --- | --- |\n| `/nbn/{service_id}/connection` | Probably GET | Check Connection | Check to see if your service is currently connected |\n| `/nbn/{service_id}/connection` | Probably POST | Kick Connection | Kick your current session and force your device to reauthenticate |\n| `/tests/{service_id}/loopback` | Probably POST | Loopback Test | This will test the connectivity between the point NBN\u2019s network transitions to ours and to the closest point to your property. Usually either the Network Termination Device or Node. |\n| `/tests/{service_id}/portreset` | Probably POST | Port Reset | This will reset the connection from the Node and also clear errors that may be causing issues with gaining sync. |\n| `/tests/{service_id}/unidstatus` | Probably POST | UNI-D Status | UNI-D Status will show if the UNI-D port you are currently using has a router connected to it. This will also provide the Link speed your router and UNI-D port are connected at Eg, 100mbit or 1gbit. You will also see the MAC address of the currently connected router. |\n\n## Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Aussie Broadband API module",
    "version": "0.1.4",
    "project_urls": {
        "Documentation": "https://yaleman.github.io/pyaussiebb/",
        "Homepage": "https://github.com/yaleman/pyaussiebb",
        "Issues": "https://github.com/yaleman/pyaussiebb/issues/",
        "Repository": "https://github.com/yaleman/pyaussiebb"
    },
    "split_keywords": [
        "api",
        " aussie",
        " broadband",
        " internet"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e75a62455360975c7bdc1c88bc78ee9b836122b4c34d895d89f3253d16fb8378",
                "md5": "04625c6af3773aedd6f4d75a40d01475",
                "sha256": "5464d9baf05d6a9de76970563c2629faf82ffb25ddbdc8b8aede8012d141aa5a"
            },
            "downloads": -1,
            "filename": "pyaussiebb-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "04625c6af3773aedd6f4d75a40d01475",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 22036,
            "upload_time": "2024-09-08T14:09:16",
            "upload_time_iso_8601": "2024-09-08T14:09:16.991440Z",
            "url": "https://files.pythonhosted.org/packages/e7/5a/62455360975c7bdc1c88bc78ee9b836122b4c34d895d89f3253d16fb8378/pyaussiebb-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c117e184bc61a7a40e550ce7f9635c1c5dd7c3043dc42a27053b5d602e592e1b",
                "md5": "fbd1cb5fabf892a5f9439613d00ed51a",
                "sha256": "f3fafa2ef7599eb79b9a6a7fe72d3b3d79360917b57e7e56e26ac7eaca6f11b8"
            },
            "downloads": -1,
            "filename": "pyaussiebb-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "fbd1cb5fabf892a5f9439613d00ed51a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 18130,
            "upload_time": "2024-09-08T14:09:18",
            "upload_time_iso_8601": "2024-09-08T14:09:18.532630Z",
            "url": "https://files.pythonhosted.org/packages/c1/17/e184bc61a7a40e550ce7f9635c1c5dd7c3043dc42a27053b5d602e592e1b/pyaussiebb-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-08 14:09:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yaleman",
    "github_project": "pyaussiebb",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pyaussiebb"
}
        
Elapsed time: 4.54643s