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

This version

2.2.3

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.3.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.3-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

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

Uploaded CPython 3.10musllinux: musl 1.1+ ARM64

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10

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

Uploaded CPython 3.9musllinux: musl 1.1+ ARM64

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9

File details

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

File metadata

  • Download URL: plugp100-2.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 cb1915baddf656b399b40525bdf8bde603d51015d50417eee0ced1dcb6ddbcaf
MD5 e48b439cd508a1ff29920d0636237c72
BLAKE2b-256 01da574b46528c35981379c1e0e3442591c8f4f3d5a688183a64c4c15e103e4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plugp100-2.2.3-py3-none-any.whl
  • Upload date:
  • Size: 30.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2ab05196fd8675d22fc9afeedcdb8d7ad386840bc4136a2b6202b38aaa6421fb
MD5 e82d5a8091d6c63eead014008cac72c7
BLAKE2b-256 d47b63b9559df9c708527f9099e0fab6a49eb3fc57f310718b8e1b600e27d3a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for plugp100-2.2.3-cp310-cp310-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 195cfa1a137950a6f5657d0b311e034c6004c3711f597dc45f24dd5c00adb8b8
MD5 fa812dc8d5312f9a43685149a3e3979a
BLAKE2b-256 65faa228d418d85a3626dd2c2aa3fa94cce7d817b6c801f0464f68e98dd96817

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for plugp100-2.2.3-cp310-cp310-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 fda02e36fe4d5ecebd9dd7959660737f170814c9f3933eb08bc3931801f4f356
MD5 fc8a30ca7fa32b734d6687f04041c264
BLAKE2b-256 ee3bb2a3c07fe170f2717de642510a35da083c3b37feda9bcb355824d9116709

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for plugp100-2.2.3-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0b54232026358e4ba48d261c1d9c9b202d6ab4f159afe20e25fe3711571083ff
MD5 c8e3373d7b0671d5760aea9cd6f34956
BLAKE2b-256 e615b0ed1c98c550e6b478fdddd1d33ffac8e5a146f48740c631c76fce69eff5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for plugp100-2.2.3-cp39-cp39-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 199dc03daa34e3853b16f117f219b652e0d59e3429da070e521aa1e26add163b
MD5 30b3481b6f2b9468a5bc7de546d09674
BLAKE2b-256 21a55d14b6d2583c6bde25fd262014088f9ea8559a9edd1e778e6729e2722b9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for plugp100-2.2.3-cp39-cp39-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 7eb99b462b1302ad6b6657f8d5731a425bac96c09c74f1259d3356cb28861dc7
MD5 b43e5916fdfccf98caaf36392e063071
BLAKE2b-256 f6293b060ffd6ee0b65c7b2756763094b49fcdf8b14b956bcc3d6a67fa8e01da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for plugp100-2.2.3-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 57886af6c748797d0a1f452116b0bff56cf440d6db20ad2c9abc43abe1bd45d2
MD5 4e58f725f18ded3bc5ce67fb24748ebb
BLAKE2b-256 06458aeb32ce98210e6d7838abda219cbb89233951caeb6d3a1e3b78e6bbe7df

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