Skip to main content

TelstraTrackMonitorAPI

Intended to be a Structured way to interface with Telstra's Track & Monitor API.\

It mostly focuses on devices for now.

Has classes and methods for:

  • Token Management - Get/Load/save/update
  • Getting Devices with specified params

Usage

Firstly you need to make up an instance of the TokenManager Class.
This Class will be used to pass the retrieved Token to other methods later

ttm_token = TelstraTrackMonitorAPI.TokenManager(
	server='https://tapi.telstra.com'
	client_id='XXXXXXXXXXXXXXXXXXXXX'
	client_secret='XXXXXXXXXXXXXXXXXXXXX'
	save_location='ttm_token.json'
)
ttm_token.load_token() #Loads any token information in the save_location json file
ttm_token.update_token() # Check if the token is expired and renews if so.

Once the above is done we can actually pull some information from Track & Monitor API

with TelstraTrackMonitorAPI.Sessions(ttm_token.server,ttm_token.access_token) as TTM:
    ttm_devices=TTM.devices_get(
        {'$filter':'not(deviceFriendlyName eq null)'}
    )

The above method will get all devices in Track & Monitor API that have a Device Friendly name.

Installation

pip install TelstraTrackMonitorAPI

Metadata

Release files for TelstraTrackMonitorAPI 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TelstraTrackMonitorAPI 0.1.8
File Size Uploaded
TelstraTrackMonitorAPI-0.1.8.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TelstraTrackMonitorAPI 0.1.8
File Interpreter ABI Platform
TelstraTrackMonitorAPI-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / TelstraTrackMonitorAPI-0.1.8.tar.gz

Download URL TelstraTrackMonitorAPI-0.1.8.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b06569ffa0645d35637db585ef2cb16dbb65c5ce1bfeb0ce58dcc73199f563e0
BLAKE2b-256 checksum
How to use checksums
1bbdcc5059df9d85b2f75a9a14fb068754109df2115e8c4818e9877dfd642d25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.6

Release files / TelstraTrackMonitorAPI-0.1.8-py3-none-any.whl

Download URL TelstraTrackMonitorAPI-0.1.8-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d67c52d971a3eb555759dbd3e0e83c5f6f1c04f6853601568b6d871908014968
BLAKE2b-256 checksum
How to use checksums
2f2b75d0e0fb7cbed2062d459f9133442ad6726c6ca60865cbc2813867d059b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.2

3 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page