Skip to main content

Controller for TP-Link Tapo P100 and other devices

Project description

Plug P100

This is a fork of original work of @K4CZP3R

The purpose of this fork is to provide the library as PyPi package.

How to install

pip install plugp100

Code example

import asyncio

from plugp100 import TapoApiClient, TapoApiClientConfig, LightEffect


async def main():
    # create generic tapo api
    config = TapoApiClientConfig("<ip>", "<email>", "<passwd>")
    sw = TapoApiClient.from_config(config)
    await sw.login()
    await sw.on()
    await sw.set_brightness(100)
    state = await sw.get_state()
    print(state.get_unmapped_state())

    # light effect example
    await sw.set_light_effect(LightEffect.rainbow())
    state = await sw.get_state()
    print(state.get_unmapped_state())

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
loop.run_until_complete(asyncio.sleep(0.1))
loop.close()

if __name__ == "__main__":
    main()

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

plugp100-2.2.0.tar.gz (24.5 kB view details)

Uploaded Source

Built Distributions

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

plugp100-2.2.0-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

plugp100-2.2.0-cp310-cp310-musllinux_1_1_aarch64.whl (32.5 kB view details)

Uploaded CPython 3.10musllinux: musl 1.1+ ARM64

plugp100-2.2.0-cp310-cp310-manylinux2014_armv7l.whl (32.5 kB view details)

Uploaded CPython 3.10

plugp100-2.2.0-cp310-cp310-manylinux2014_aarch64.whl (32.5 kB view details)

Uploaded CPython 3.10

plugp100-2.2.0-cp39-cp39-musllinux_1_1_aarch64.whl (32.5 kB view details)

Uploaded CPython 3.9musllinux: musl 1.1+ ARM64

plugp100-2.2.0-cp39-cp39-manylinux2014_armv7l.whl (32.5 kB view details)

Uploaded CPython 3.9

plugp100-2.2.0-cp39-cp39-manylinux2014_aarch64.whl (32.5 kB view details)

Uploaded CPython 3.9

File details

Details for the file plugp100-2.2.0.tar.gz.

File metadata

  • Download URL: plugp100-2.2.0.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for plugp100-2.2.0.tar.gz
Algorithm Hash digest
SHA256 5bc3286fdf809f4d2ff620872c0c73ad28e6a8764bcab0076e08b3a9fe4cfed8
MD5 c84c94264dcdc3ee4b0721ac44c38bb0
BLAKE2b-256 7bf23980c3f67d27c3a69503174d1f42e438b40be410c3a3f944eb3269ef3921

See more details on using hashes here.

File details

Details for the file plugp100-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: plugp100-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for plugp100-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26ae4f28566834f9e5ff4611748e07eb61383aa17a6e32f03deabf4a7eed45cc
MD5 54ab90bd2197d6512ec8031b61e1f8af
BLAKE2b-256 1b181ed101e7ea531f12811837c92cc3a14301249e55ea24e272febedfb5e778

See more details on using hashes here.

File details

Details for the file plugp100-2.2.0-cp310-cp310-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for plugp100-2.2.0-cp310-cp310-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 b7cf0ce358a89a7271957828ab105c79de1bf74d027e360a799f6419496977cb
MD5 b2c18b9e1f831f32b2df1eb8dcc5996d
BLAKE2b-256 53a7bbf02ca1cc807d926ded6bab0eff234cb4bdb10fc1763296b1e11636a688

See more details on using hashes here.

File details

Details for the file plugp100-2.2.0-cp310-cp310-manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for plugp100-2.2.0-cp310-cp310-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 226b6d1df1b15b8d834a07ebbf6205ed23c7a23bdc04dc2bd438d76d08184f8d
MD5 93f4591abf3c318236d6a3f68a535077
BLAKE2b-256 53b7a782fddb0d76721400557315fd8d01679c1a2bdbee95c3a79c49140d2763

See more details on using hashes here.

File details

Details for the file plugp100-2.2.0-cp310-cp310-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for plugp100-2.2.0-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5339a8bed75c0b1d458e32a6ab48a53f4573b13d1dfb062b95a38ebaa7f67f25
MD5 631c7268de19abc0e68cd82b2b101c49
BLAKE2b-256 1480731f411e3c260616c241ecf059640a348d6069294c45e39c9e2894cc63cf

See more details on using hashes here.

File details

Details for the file plugp100-2.2.0-cp39-cp39-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for plugp100-2.2.0-cp39-cp39-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 a59bc3b10eca9977609af492ae9dc817b0abc80e289233d84b83c2981d5c8be8
MD5 ce2772410dbefa71f07ffa91c964d5bb
BLAKE2b-256 1d09bfd84f6c14758ecc05d393ba916adb0c46ca2315fc18f9fafa61f5374b39

See more details on using hashes here.

File details

Details for the file plugp100-2.2.0-cp39-cp39-manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for plugp100-2.2.0-cp39-cp39-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 7b2960cd7f1302f1a3ab7556f3ba50e6af9a33332b5eb9a59c9ac39b10ae266e
MD5 1761a1602de964250feddc772beaedb7
BLAKE2b-256 476044402345f7bc9a943de9597b55e2d5ef8ca7524896b8acf4344ddb2b2572

See more details on using hashes here.

File details

Details for the file plugp100-2.2.0-cp39-cp39-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for plugp100-2.2.0-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6ec868f43fd495d8b500d7e62c6ae50c239dd3b94b8b3c7866ca11616e68d411
MD5 6d58ba09e2de6fec4df5c992c098a9f4
BLAKE2b-256 fcd19145a62faf86d4d4a0e12a7458eeb66ff50a7b6487282c84ed5f055a61a6

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