Skip to main content

No project description provided

Project description


Logo

aioptdevices

Easily fetch your PTDevice information from the PTDevices servers with the aioptdevices package.

Table of Contents
  1. About This Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgments

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.

(back to top)

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

  1. Clone the repository.

    git clone https://github.com/ParemTech-Inc/aioptdevices.git
    
  2. 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 .
    

(back to top)

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.

(back to top)

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Create ./tests/secret.py with
"""Secret Parameters."""

TOKEN: str = "Your API Token"
DEVICE_ID: str = "Your Device ID"
  1. Run pytest and verify that all tests pass
  2. Push to the Branch (git push origin feature/AmazingFeature)
  3. Open a Pull Request

(back to top)

License

Distributed under the GNU GPL-3.0 License. See LICENSE for more information.

(back to top)

Contact

Matthew Gibson - @frogman85978 - matthew.gibzon@gmail.com

ParemTech Inc. - @ParemTech-Inc - info@paremtech.com

Project Link: https://github.com/ParemTech-Inc/aioptdevices

(back to top)

Acknowledgments

(back to top)

Project details


Download files

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

Source Distribution

aioptdevices-2026.3.1.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

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

aioptdevices-2026.3.1-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file aioptdevices-2026.3.1.tar.gz.

File metadata

  • Download URL: aioptdevices-2026.3.1.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aioptdevices-2026.3.1.tar.gz
Algorithm Hash digest
SHA256 5d6dc13e26d8c6f6349f08c2b327a1ae81cebdc38cbc4607b0dacc32bdbac054
MD5 e967ede28c93d585752d485151167712
BLAKE2b-256 72a9e914fcd2d18720ee9dcc0585a59fb74e84952d632f2e62f70a3c7873a729

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioptdevices-2026.3.1.tar.gz:

Publisher: publish-workflow.yml on ParemTech-Inc/aioptdevices

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aioptdevices-2026.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aioptdevices-2026.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c924bb19314dc1ab778ef66a4e2edb0ac6f572c65df64eea760dbecff43206cf
MD5 dc3f3ccfeb787dd4d39675a02a7929dc
BLAKE2b-256 e7b0f1f1d7ee3d89c3520b940c98ea0fdfa76efb6b73e5d42a1fd4078ec193b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioptdevices-2026.3.1-py3-none-any.whl:

Publisher: publish-workflow.yml on ParemTech-Inc/aioptdevices

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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