Skip to main content

A Python wrapper around the QwikSwitch API

Project description

qwikswitch-api

A Python wrapper for the Qwikswitch API, used for remotely controlling Qwikswitch devices using the Wifi Bridge.

An alternative (local) way of controlling Qwikswitch devices is with a USB Modem. If this is the device that you have, see the pyqwikswitch library instead.

Usage

The following operations are implemented:

  • Keys - Generate API Keys (generate_api_keys)
  • Keys - Delete API Keys (delete_api_keys)
  • Control - Control a device (control_device)
  • State - Get all device status (get_all_device_status)

Device history is not implemented in this library yet as I don't have access to these devices.

If you have access to devices that record history, please open an issue detailing sample responses from get_all_device_status and the history calls.

Sample usage to control a device:

from qwikswitch import QSApi

api = Qwikswitch('email', 'masterkey')
api_keys = api.generate_api_keys()
api.control_device(api_keys, '@123450', 100)

To list all current device statuses:

devices = api.get_all_device_status(api_keys)

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

qwikswitch_api-0.0.1.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

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

qwikswitch_api-0.0.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file qwikswitch_api-0.0.1.tar.gz.

File metadata

  • Download URL: qwikswitch_api-0.0.1.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.0

File hashes

Hashes for qwikswitch_api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5651b6b60e1ac17e33aa16dc28c029383b92b3ef557822ed17f4c257a2316cc0
MD5 52c8691a146209e3fbb4dfb15c6b6c46
BLAKE2b-256 0339d5a8f2bead6fbd66676cbc2336721b2d6dca02d2410b2d8d2184d56c31ba

See more details on using hashes here.

File details

Details for the file qwikswitch_api-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: qwikswitch_api-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.0

File hashes

Hashes for qwikswitch_api-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e37aaa0c5dd709182ed271307e8550ff754d0c95d37b013f44a87f10b4fadc9
MD5 25dffef9e382c68c924d77a50601ffea
BLAKE2b-256 66f36ed96a05987bbb1b030db1388184bea9c4a68dcb17b5d42f27a3e91dfdfc

See more details on using hashes here.

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