No project description provided
Project description
aioptdevices
Easily fetch your PTDevice information from the PTDevices servers with the aioptdevices package.
Table of Contents
About This Project
This package allows polling the PTDevices servers for device data via the token API. See Token API Docs. It was developed for use in the PTDevices Home Assistant Integration but can be used for other projects. It offers both a command line tool and a library.
Getting Started
Prerequisites
- Have Python 3.12 or later installed.
- Have a PTDevices account and an API token. You can request a free API token by creating a support ticket at https://support.paremtech.com/portal/en/newticket. To help streamline the process, be sure to include the email address associated with your PTDevices account.
Installation
PyPi
python3 -m pip install aioptdevices
Manual Setup
-
Clone the repository.
git clone https://github.com/ParemTech-Inc/aioptdevices.git
-
Install Python Packages and setup the environment.
Linux venv Setup
bash ./setup.sh source venv/bin/activate
Windows venv Setup
.\setup.ps1 .\venv\Scripts\activate
Installing Globally
Linux and Windows
python3 -m pip install .
Usage
As a Command Line Tool
Make sure to set up and activate the venv or install the package globally before trying to use it, refer to Manual setup step 2. If you installed the package from PyPi, you can go straight to Command usage.
Command usage
usage: aioptdevices [-h] [-U URL] [-D] deviceID authToken
positional arguments:
deviceID
authToken
options:
-h, --help show this help message and exit
-U URL, --url URL
-D, --debug
As a Library
See the examples folder for usage as a library.
Contributing
If you have an idea to improve this package, please fork the repo and create a pull request. Or, you can simply open an issue.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Create ./tests/secret.py with
"""Secret Parameters."""
TOKEN: str = "Your API Token"
DEVICE_ID: str = "Your Device ID"
- Run pytest and verify that all tests pass
- Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the GNU GPL-3.0 License. See LICENSE for more information.
Contact
Matthew Gibson - @frogman85978 - matthew.gibzon@gmail.com
ParemTech Inc. - @ParemTech-Inc - info@paremtech.com
Project Link: https://github.com/ParemTech-Inc/aioptdevices
Acknowledgments
- Othneil Drew (@othneildrew) creator of the Best-README-Template
- Robert Svensson (@Kane610) creator of the aiounifi package
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aioptdevices-2025.12.3.tar.gz.
File metadata
- Download URL: aioptdevices-2025.12.3.tar.gz
- Upload date:
- Size: 23.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b44773aecb40d15e5245190ac3976dc2953d149ded17f03678665d90ec35b62
|
|
| MD5 |
b54637a3ba40a22bb752e181ab313045
|
|
| BLAKE2b-256 |
031a583dca53ab8284eb9c57273db45f994ce5eebd7e1c53beec71065fa93f58
|
Provenance
The following attestation bundles were made for aioptdevices-2025.12.3.tar.gz:
Publisher:
publish-workflow.yml on ParemTech-Inc/aioptdevices
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioptdevices-2025.12.3.tar.gz -
Subject digest:
0b44773aecb40d15e5245190ac3976dc2953d149ded17f03678665d90ec35b62 - Sigstore transparency entry: 769108172
- Sigstore integration time:
-
Permalink:
ParemTech-Inc/aioptdevices@68e69d361f7947dc7fd1fcdf58fbfb3c825026c3 -
Branch / Tag:
refs/tags/v2025.12.3 - Owner: https://github.com/ParemTech-Inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-workflow.yml@68e69d361f7947dc7fd1fcdf58fbfb3c825026c3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file aioptdevices-2025.12.3-py3-none-any.whl.
File metadata
- Download URL: aioptdevices-2025.12.3-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d03e4fb1b754656d9dbe84a69441d21ecb3cd8797b68866e3bd68a00af950fc
|
|
| MD5 |
555e74921a92ce3bc3498b7baee9ad94
|
|
| BLAKE2b-256 |
301af1f94d56361d903b4b7a7f6d659ec33dd7f17572e695f5c601db4ee8ea27
|
Provenance
The following attestation bundles were made for aioptdevices-2025.12.3-py3-none-any.whl:
Publisher:
publish-workflow.yml on ParemTech-Inc/aioptdevices
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioptdevices-2025.12.3-py3-none-any.whl -
Subject digest:
7d03e4fb1b754656d9dbe84a69441d21ecb3cd8797b68866e3bd68a00af950fc - Sigstore transparency entry: 769108178
- Sigstore integration time:
-
Permalink:
ParemTech-Inc/aioptdevices@68e69d361f7947dc7fd1fcdf58fbfb3c825026c3 -
Branch / Tag:
refs/tags/v2025.12.3 - Owner: https://github.com/ParemTech-Inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-workflow.yml@68e69d361f7947dc7fd1fcdf58fbfb3c825026c3 -
Trigger Event:
release
-
Statement type: