Maid White SDK in Python
Project description
Maid White Python SDK
Install
$ pip install maidwhite
Usage
from maidwhite import MaidWhite
# Get client with username and password
m = MaidWhite("username", "password")
# Get client with access token
m = MaidWhite("access_token")
# Get device list
l = m.get_devices()
# find device
ac = [x for x in l if x.display_name == "My Device"]
if len(ac) == 0:
print("device not found")
my_device = ac[0]
# Get state
state = my_device.get_state()
print(state)
# Set state
my_device.set_state({"power_status": "true"})
# Get power status
power_status = my_device.get_power_status()
print(power_status)
# Set power status
my_device.set_power_status(True)
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
maidwhite-0.0.1.tar.gz
(2.2 kB
view details)
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 maidwhite-0.0.1.tar.gz.
File metadata
- Download URL: maidwhite-0.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e57284ca2558c1f978deed00be80702e2a34498515c56536e4be52aa3400432a
|
|
| MD5 |
d32e05ab764d67b46211d708217e3c1a
|
|
| BLAKE2b-256 |
cd1f1f75506b9564dbe8be978a2524330ff48b2d357e53391d63d280e8894e6e
|
File details
Details for the file maidwhite-0.0.1-py3-none-any.whl.
File metadata
- Download URL: maidwhite-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b8c65d1405118d83f67bfc9ca2c4a829efcf74507a941d9510a0b597b17c120
|
|
| MD5 |
f08ced5ec0dd31a75d96e7c143741ddc
|
|
| BLAKE2b-256 |
9ba6d4ec7e64bf9302e8744869f9d90b8e49673e53e2f2bdc1808c015512615f
|