python-kasa 0.7.2__tar.gz → 0.7.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_kasa-0.7.4/.gitignore +30 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/CHANGELOG.md +123 -74
- {python_kasa-0.7.2 → python_kasa-0.7.4}/PKG-INFO +30 -27
- {python_kasa-0.7.2 → python_kasa-0.7.4}/README.md +3 -2
- python_kasa-0.7.4/devtools/README.md +128 -0
- python_kasa-0.7.4/devtools/__init__.py +1 -0
- python_kasa-0.7.4/devtools/bench/benchmark.py +31 -0
- python_kasa-0.7.4/devtools/bench/utils/__init__.py +1 -0
- python_kasa-0.7.4/devtools/bench/utils/data.py +140 -0
- python_kasa-0.7.4/devtools/bench/utils/original.py +48 -0
- python_kasa-0.7.4/devtools/create_module_fixtures.py +63 -0
- python_kasa-0.7.4/devtools/dump_devinfo.py +696 -0
- python_kasa-0.7.4/devtools/generate_supported.py +261 -0
- python_kasa-0.7.4/devtools/helpers/__init__.py +1 -0
- python_kasa-0.7.4/devtools/helpers/smartrequests.py +420 -0
- python_kasa-0.7.4/devtools/parse_pcap.py +101 -0
- python_kasa-0.7.4/devtools/parse_pcap_klap.py +350 -0
- python_kasa-0.7.4/devtools/perftest.py +94 -0
- python_kasa-0.7.4/docs/Makefile +20 -0
- python_kasa-0.7.4/docs/make.bat +35 -0
- python_kasa-0.7.4/docs/source/SUPPORTED.md +3 -0
- python_kasa-0.7.4/docs/source/_static/copybutton.js +65 -0
- python_kasa-0.7.4/docs/source/cli.rst +77 -0
- python_kasa-0.7.4/docs/source/codeinfo.md +26 -0
- python_kasa-0.7.4/docs/source/conf.py +71 -0
- python_kasa-0.7.4/docs/source/contribute.md +86 -0
- python_kasa-0.7.4/docs/source/deprecated.md +67 -0
- python_kasa-0.7.4/docs/source/guides/connect.md +10 -0
- python_kasa-0.7.4/docs/source/guides/device.md +10 -0
- python_kasa-0.7.4/docs/source/guides/discover.md +11 -0
- python_kasa-0.7.4/docs/source/guides/energy.md +27 -0
- python_kasa-0.7.4/docs/source/guides/feature.md +10 -0
- python_kasa-0.7.4/docs/source/guides/light.md +26 -0
- python_kasa-0.7.4/docs/source/guides/module.md +10 -0
- python_kasa-0.7.4/docs/source/guides/strip.md +10 -0
- python_kasa-0.7.4/docs/source/guides.md +16 -0
- python_kasa-0.7.4/docs/source/index.md +12 -0
- python_kasa-0.7.4/docs/source/library.md +15 -0
- python_kasa-0.7.4/docs/source/reference.md +173 -0
- python_kasa-0.7.4/docs/source/smartbulb.rst +79 -0
- python_kasa-0.7.4/docs/source/smartdevice.rst +105 -0
- python_kasa-0.7.4/docs/source/smartdimmer.rst +18 -0
- python_kasa-0.7.4/docs/source/smartlightstrip.rst +17 -0
- python_kasa-0.7.4/docs/source/smartplug.rst +18 -0
- python_kasa-0.7.4/docs/source/smartstrip.rst +36 -0
- python_kasa-0.7.4/docs/source/topics.md +232 -0
- python_kasa-0.7.4/docs/source/tutorial.md +11 -0
- python_kasa-0.7.4/docs/tutorial.py +95 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/aestransport.py +11 -2
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/cli/device.py +12 -1
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/device.py +15 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/deviceconfig.py +11 -2
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/iotbulb.py +1 -1
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/iotdevice.py +7 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/alarm.py +7 -5
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/conftest.py +46 -0
- python_kasa-0.7.4/kasa/tests/fixtures/KL135(US)_1.0_1.0.15.json +93 -0
- python_kasa-0.7.4/kasa/tests/fixtures/KS200M(US)_1.0_1.0.12.json +96 -0
- python_kasa-0.7.4/kasa/tests/fixtures/smart/KH100(EU)_1.0_1.2.3.json +255 -0
- python_kasa-0.7.4/kasa/tests/fixtures/smart/KH100(EU)_1.0_1.5.12.json +429 -0
- python_kasa-0.7.4/kasa/tests/fixtures/smart/child/T110(EU)_1.0_1.9.0.json +511 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_aestransport.py +25 -1
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_bulb.py +2 -2
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_cli.py +16 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_common_modules.py +2 -2
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_device.py +1 -1
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_discovery.py +8 -6
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_klapprotocol.py +9 -9
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_protocol.py +1 -1
- {python_kasa-0.7.2 → python_kasa-0.7.4}/pyproject.toml +76 -61
- {python_kasa-0.7.2 → python_kasa-0.7.4}/LICENSE +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/__init__.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/cli/__init__.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/cli/__main__.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/cli/common.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/cli/discover.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/cli/feature.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/cli/lazygroup.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/cli/light.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/cli/main.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/cli/schedule.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/cli/time.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/cli/usage.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/cli/wifi.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/credentials.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/device_factory.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/device_type.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/discover.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/emeterstatus.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/exceptions.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/feature.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/httpclient.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/interfaces/__init__.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/interfaces/energy.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/interfaces/fan.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/interfaces/led.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/interfaces/light.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/interfaces/lighteffect.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/interfaces/lightpreset.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/__init__.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/effects.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/iotdimmer.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/iotlightstrip.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/iotmodule.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/iotplug.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/iotstrip.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/__init__.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/ambientlight.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/antitheft.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/cloud.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/countdown.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/emeter.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/led.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/light.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/lighteffect.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/lightpreset.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/motion.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/rulemodule.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/schedule.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/time.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iot/modules/usage.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/iotprotocol.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/json.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/klaptransport.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/module.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/modulemapping.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/modulemapping.pyi +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/protocol.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/py.typed +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/__init__.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/effects.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/__init__.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/autooff.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/batterysensor.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/brightness.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/childdevice.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/cloud.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/color.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/colortemperature.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/contactsensor.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/devicemodule.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/energy.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/fan.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/firmware.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/frostprotection.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/humiditysensor.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/led.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/light.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/lighteffect.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/lightpreset.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/lightstripeffect.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/lighttransition.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/motionsensor.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/reportmode.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/temperaturecontrol.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/temperaturesensor.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/time.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/modules/waterleaksensor.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/smartchilddevice.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/smartdevice.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smart/smartmodule.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/smartprotocol.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/__init__.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/device_fixtures.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/discovery_fixtures.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fakeprotocol_iot.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fakeprotocol_smart.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtureinfo.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/EP10(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/EP40(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/ES20M(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS100(UK)_1.0_1.2.6.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS100(UK)_4.1_1.1.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS100(US)_1.0_1.2.5.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS100(US)_2.0_1.5.6.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS103(US)_1.0_1.5.7.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS103(US)_2.1_1.1.2.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS103(US)_2.1_1.1.4.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS105(US)_1.0_1.5.6.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS107(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS110(EU)_1.0_1.2.5.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS110(EU)_4.0_1.0.4.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS110(US)_1.0_1.2.6.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS200(US)_2.0_1.5.7.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS200(US)_5.0_1.0.2.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS210(US)_1.0_1.5.8.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS220(US)_1.0_1.5.7.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS220(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS300(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS300(US)_1.0_1.0.21.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS300(US)_2.0_1.0.12.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/HS300(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL110(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL120(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL120(US)_1.0_1.8.6.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL125(US)_1.20_1.0.5.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL125(US)_2.0_1.0.7.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL125(US)_4.0_1.0.5.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL130(EU)_1.0_1.8.8.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL130(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL135(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL400L5(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL400L5(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL420L5(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL430(UN)_2.0_1.0.8.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL430(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL430(US)_2.0_1.0.11.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL430(US)_2.0_1.0.8.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL430(US)_2.0_1.0.9.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL50(US)_1.0_1.1.13.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL60(UN)_1.0_1.1.4.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KL60(US)_1.0_1.1.13.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP100(US)_3.0_1.0.1.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP105(UK)_1.0_1.0.5.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP105(UK)_1.0_1.0.7.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP115(EU)_1.0_1.0.16.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP115(US)_1.0_1.0.17.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP115(US)_1.0_1.0.21.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP125(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP200(US)_3.0_1.0.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP303(UK)_1.0_1.0.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP303(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP400(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP400(US)_2.0_1.0.6.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP400(US)_3.0_1.0.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP400(US)_3.0_1.0.4.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP401(US)_1.0_1.0.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP405(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KP405(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KS200M(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KS200M(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KS220M(US)_1.0_1.0.4.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/KS230(US)_1.0_1.0.14.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/LB110(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/EP25(US)_2.6_1.0.1.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/H100(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/H100(EU)_1.0_1.5.10.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/H100(EU)_1.0_1.5.5.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/HS220(US)_3.26_1.0.1.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/KH100(UK)_1.0_1.5.6.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/KP125M(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/KS205(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/KS205(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/KS225(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/KS225(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/KS240(US)_1.0_1.0.4.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/KS240(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L510B(EU)_3.0_1.0.5.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L510E(US)_3.0_1.0.5.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L510E(US)_3.0_1.1.2.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L530E(EU)_3.0_1.0.6.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L530E(EU)_3.0_1.1.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L530E(EU)_3.0_1.1.6.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L530E(US)_2.0_1.1.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L900-10(EU)_1.0_1.0.17.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L900-10(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L900-5(EU)_1.0_1.0.17.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L900-5(EU)_1.0_1.1.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L920-5(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L920-5(EU)_1.0_1.1.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L920-5(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L920-5(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/L930-5(US)_1.0_1.1.2.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/P100_1.0.0_1.1.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/P100_1.0.0_1.3.7.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/P100_1.0.0_1.4.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/P110(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/P110(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/P110(UK)_1.0_1.3.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/P115(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/P125M(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/P135(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.13.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.15.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/S500D(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/S505(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/S505D(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/TP15(US)_1.0_1.0.3.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/TP25(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/child/KE100(EU)_1.0_2.4.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/child/KE100(EU)_1.0_2.8.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/child/KE100(UK)_1.0_2.8.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/child/T100(EU)_1.0_1.12.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/child/T110(EU)_1.0_1.8.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/child/T300(EU)_1.0_1.7.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/__init__.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/features/__init__.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/features/test_brightness.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/features/test_colortemp.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/modules/__init__.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/modules/test_autooff.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/modules/test_contact.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/modules/test_fan.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/modules/test_firmware.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/modules/test_humidity.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/modules/test_light_effect.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/modules/test_light_strip_effect.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/modules/test_lighttransition.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/modules/test_motionsensor.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/modules/test_temperature.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/modules/test_temperaturecontrol.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/smart/modules/test_waterleak.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_childdevice.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_device_factory.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_device_type.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_deviceconfig.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_dimmer.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_emeter.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_feature.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_httpclient.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_iotdevice.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_lightstrip.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_plug.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_readme_examples.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_smartdevice.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_smartprotocol.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_strip.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/tests/test_usage.py +0 -0
- {python_kasa-0.7.2 → python_kasa-0.7.4}/kasa/xortransport.py +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Compiled python modules.
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.pyc
|
|
4
|
+
|
|
5
|
+
# Setuptools distribution folder.
|
|
6
|
+
/dist/
|
|
7
|
+
|
|
8
|
+
# Python egg metadata, regenerated from source files by setuptools.
|
|
9
|
+
/*.egg-info
|
|
10
|
+
/*.egg
|
|
11
|
+
|
|
12
|
+
# Coverage
|
|
13
|
+
.coverage
|
|
14
|
+
|
|
15
|
+
# Tox
|
|
16
|
+
.tox
|
|
17
|
+
.cache
|
|
18
|
+
|
|
19
|
+
# IntelliJ
|
|
20
|
+
.idea
|
|
21
|
+
|
|
22
|
+
# vscode
|
|
23
|
+
.vscode
|
|
24
|
+
|
|
25
|
+
# VirtualEnvs
|
|
26
|
+
venv
|
|
27
|
+
.venv
|
|
28
|
+
|
|
29
|
+
/build
|
|
30
|
+
docs/build
|
|
@@ -1,12 +1,61 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.4](https://github.com/python-kasa/python-kasa/tree/0.7.4) (2024-09-27)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.3...0.7.4)
|
|
6
|
+
|
|
7
|
+
**Release summary:**
|
|
8
|
+
|
|
9
|
+
- KL135 color temp range corrected to 9000k max
|
|
10
|
+
- Minor enhancements and project maintenance
|
|
11
|
+
|
|
12
|
+
**Implemented enhancements:**
|
|
13
|
+
|
|
14
|
+
- Add factory\_reset\(\) to iotdevice [\#1125](https://github.com/python-kasa/python-kasa/pull/1125) (@rytilahti)
|
|
15
|
+
- Add reboot\(\) to the device interface [\#1124](https://github.com/python-kasa/python-kasa/pull/1124) (@rytilahti)
|
|
16
|
+
- Add factory-reset command to cli [\#1108](https://github.com/python-kasa/python-kasa/pull/1108) (@rytilahti)
|
|
17
|
+
|
|
18
|
+
**Fixed bugs:**
|
|
19
|
+
|
|
20
|
+
- Extend KL135 ct range up to 9000K [\#1123](https://github.com/python-kasa/python-kasa/pull/1123) (@rytilahti)
|
|
21
|
+
- Fix cli command for device off [\#1121](https://github.com/python-kasa/python-kasa/pull/1121) (@sdb9696)
|
|
22
|
+
|
|
23
|
+
**Project maintenance:**
|
|
24
|
+
|
|
25
|
+
- Use pytest-socket to ensure no tests are performing io [\#1133](https://github.com/python-kasa/python-kasa/pull/1133) (@sdb9696)
|
|
26
|
+
- Enable ruff lint pycodestyle warnings [\#1132](https://github.com/python-kasa/python-kasa/pull/1132) (@sdb9696)
|
|
27
|
+
- Add autouse fixture to patch asyncio.sleep [\#1131](https://github.com/python-kasa/python-kasa/pull/1131) (@sdb9696)
|
|
28
|
+
- Mock asyncio.sleep for klapprotocol tests [\#1130](https://github.com/python-kasa/python-kasa/pull/1130) (@rytilahti)
|
|
29
|
+
- Add fixture for T110 fw 1.9.0 [\#1129](https://github.com/python-kasa/python-kasa/pull/1129) (@rytilahti)
|
|
30
|
+
- Speed up and simplify github workflows [\#1128](https://github.com/python-kasa/python-kasa/pull/1128) (@sdb9696)
|
|
31
|
+
- Add KS200M\(US\) fw 1.0.12 fixture [\#1127](https://github.com/python-kasa/python-kasa/pull/1127) (@GatorEG)
|
|
32
|
+
- Add stale PR/Issue github workflow [\#1126](https://github.com/python-kasa/python-kasa/pull/1126) (@sdb9696)
|
|
33
|
+
- Add fixture for KL135\(US\) fw 1.0.15 [\#1122](https://github.com/python-kasa/python-kasa/pull/1122) (@rytilahti)
|
|
34
|
+
|
|
35
|
+
## [0.7.3](https://github.com/python-kasa/python-kasa/tree/0.7.3) (2024-09-10)
|
|
36
|
+
|
|
37
|
+
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.2...0.7.3)
|
|
38
|
+
|
|
39
|
+
**Release summary:**
|
|
40
|
+
|
|
41
|
+
- Migrate from `poetry` to `uv` for package/project management.
|
|
42
|
+
- Various minor code improvements
|
|
43
|
+
|
|
44
|
+
**Project maintenance:**
|
|
45
|
+
|
|
46
|
+
- Do not regenerate aes key pair [\#1114](https://github.com/python-kasa/python-kasa/pull/1114) (@sdb9696)
|
|
47
|
+
- Fix tests due to yarl URL str output change [\#1112](https://github.com/python-kasa/python-kasa/pull/1112) (@sdb9696)
|
|
48
|
+
- Add missing type hints to alarm module [\#1111](https://github.com/python-kasa/python-kasa/pull/1111) (@rytilahti)
|
|
49
|
+
- Add KH100 EU fixtures [\#1109](https://github.com/python-kasa/python-kasa/pull/1109) (@rytilahti)
|
|
50
|
+
- Migrate from poetry to uv for dependency and package management [\#986](https://github.com/python-kasa/python-kasa/pull/986) (@sdb9696)
|
|
51
|
+
|
|
3
52
|
## [0.7.2](https://github.com/python-kasa/python-kasa/tree/0.7.2) (2024-08-30)
|
|
4
53
|
|
|
5
54
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.1...0.7.2)
|
|
6
55
|
|
|
7
|
-
**Release summary:**
|
|
8
|
-
|
|
9
|
-
- **Breaking** change to disable including the check for the latest firmware for tapo devices and newer kasa devices in the standard update cycle. To check for the latest firmware call `check_latest_firmware` on the firmware module or run the `check_latest_firmware` feature.
|
|
56
|
+
**Release summary:**
|
|
57
|
+
|
|
58
|
+
- **Breaking** change to disable including the check for the latest firmware for tapo devices and newer kasa devices in the standard update cycle. To check for the latest firmware call `check_latest_firmware` on the firmware module or run the `check_latest_firmware` feature.
|
|
10
59
|
- Minor bugfixes and improvements.
|
|
11
60
|
|
|
12
61
|
**Breaking changes:**
|
|
@@ -27,19 +76,19 @@
|
|
|
27
76
|
|
|
28
77
|
**Project maintenance:**
|
|
29
78
|
|
|
79
|
+
- Remove top level await xdoctest fixture [\#1098](https://github.com/python-kasa/python-kasa/pull/1098) (@sdb9696)
|
|
80
|
+
- Enable python 3.13, allow pre-releases for CI [\#1086](https://github.com/python-kasa/python-kasa/pull/1086) (@rytilahti)
|
|
30
81
|
- Add flake8-pytest-style \(PT\) for ruff [\#1105](https://github.com/python-kasa/python-kasa/pull/1105) (@rytilahti)
|
|
31
82
|
- Add flake8-logging \(LOG\) and flake8-logging-format \(G\) for ruff [\#1104](https://github.com/python-kasa/python-kasa/pull/1104) (@rytilahti)
|
|
32
83
|
- Add missing typing\_extensions dependency [\#1101](https://github.com/python-kasa/python-kasa/pull/1101) (@sdb9696)
|
|
33
|
-
- Remove top level await xdoctest fixture [\#1098](https://github.com/python-kasa/python-kasa/pull/1098) (@sdb9696)
|
|
34
|
-
- Enable python 3.13, allow pre-releases for CI [\#1086](https://github.com/python-kasa/python-kasa/pull/1086) (@rytilahti)
|
|
35
84
|
|
|
36
85
|
## [0.7.1](https://github.com/python-kasa/python-kasa/tree/0.7.1) (2024-07-31)
|
|
37
86
|
|
|
38
87
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.0.5...0.7.1)
|
|
39
88
|
|
|
40
|
-
**Release highlights:**
|
|
41
|
-
- This release consists mainly of bugfixes and project improvements.
|
|
42
|
-
- There is also new support for Tapo T100 motion sensors.
|
|
89
|
+
**Release highlights:**
|
|
90
|
+
- This release consists mainly of bugfixes and project improvements.
|
|
91
|
+
- There is also new support for Tapo T100 motion sensors.
|
|
43
92
|
- The CLI now supports child devices on all applicable commands.
|
|
44
93
|
|
|
45
94
|
**Implemented enhancements:**
|
|
@@ -105,7 +154,7 @@ A critical bugfix for an issue with some L530 Series devices and a redactor for
|
|
|
105
154
|
|
|
106
155
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.0.3...0.7.0.4)
|
|
107
156
|
|
|
108
|
-
Critical bugfixes for issues with P100s and thermostats
|
|
157
|
+
Critical bugfixes for issues with P100s and thermostats
|
|
109
158
|
|
|
110
159
|
|
|
111
160
|
**Fixed bugs:**
|
|
@@ -119,7 +168,7 @@ Critical bugfixes for issues with P100s and thermostats
|
|
|
119
168
|
|
|
120
169
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.0.2...0.7.0.3)
|
|
121
170
|
|
|
122
|
-
Critical bugfix for issue #1033 with ks225 and S505D light preset module errors.
|
|
171
|
+
Critical bugfix for issue #1033 with ks225 and S505D light preset module errors.
|
|
123
172
|
Partially fixes light preset module errors with L920 and L930.
|
|
124
173
|
|
|
125
174
|
**Fixed bugs:**
|
|
@@ -174,25 +223,25 @@ This patch release fixes some minor issues found out during testing against all
|
|
|
174
223
|
|
|
175
224
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.6.2.1...0.7.0)
|
|
176
225
|
|
|
177
|
-
We have been working hard behind the scenes to make this major release possible.
|
|
178
|
-
This release brings a major refactoring of the library to serve the ever-growing list of supported devices and paves the way for the future, yet unsupported devices.
|
|
179
|
-
The library now exposes device features through generic module and feature interfaces, that allows easy extension for future improvements.
|
|
180
|
-
|
|
181
|
-
With almost 180 merged pull requests, over 200 changed files and since the last release, this release includes lots of goodies for everyone:
|
|
182
|
-
* Support for multi-functional devices like the dimmable fan KS240.
|
|
183
|
-
* Initial support for hubs and hub-connected devices like thermostats and sensors.
|
|
184
|
-
* Both IOT (legacy kasa) and SMART (tapo and newer kasa) devices now expose features and share common API.
|
|
185
|
-
* Modules to allow controlling new devices and functions such as light presets, fan controls, thermostats, humidity sensors, firmware updates and alarms.
|
|
186
|
-
* The common APIs allow dynamic introspection of available device features, making it easy to create dynamic interfaces.
|
|
187
|
-
* Improved documentation.
|
|
188
|
-
|
|
189
|
-
Hope you enjoy the release, feel free to leave a comment and feedback!
|
|
190
|
-
|
|
191
|
-
If you have a device that works, but is not listed in our supported devices list, feel free to [contribute fixture files](https://python-kasa.readthedocs.io/en/latest/contribute.html#contributing-fixture-files) to help us to make the library even better!
|
|
192
|
-
|
|
193
|
-
> git diff 0.6.2.1..HEAD|diffstat
|
|
194
|
-
> 214 files changed, 26960 insertions(+), 6310 deletions(-)
|
|
195
|
-
|
|
226
|
+
We have been working hard behind the scenes to make this major release possible.
|
|
227
|
+
This release brings a major refactoring of the library to serve the ever-growing list of supported devices and paves the way for the future, yet unsupported devices.
|
|
228
|
+
The library now exposes device features through generic module and feature interfaces, that allows easy extension for future improvements.
|
|
229
|
+
|
|
230
|
+
With almost 180 merged pull requests, over 200 changed files and since the last release, this release includes lots of goodies for everyone:
|
|
231
|
+
* Support for multi-functional devices like the dimmable fan KS240.
|
|
232
|
+
* Initial support for hubs and hub-connected devices like thermostats and sensors.
|
|
233
|
+
* Both IOT (legacy kasa) and SMART (tapo and newer kasa) devices now expose features and share common API.
|
|
234
|
+
* Modules to allow controlling new devices and functions such as light presets, fan controls, thermostats, humidity sensors, firmware updates and alarms.
|
|
235
|
+
* The common APIs allow dynamic introspection of available device features, making it easy to create dynamic interfaces.
|
|
236
|
+
* Improved documentation.
|
|
237
|
+
|
|
238
|
+
Hope you enjoy the release, feel free to leave a comment and feedback!
|
|
239
|
+
|
|
240
|
+
If you have a device that works, but is not listed in our supported devices list, feel free to [contribute fixture files](https://python-kasa.readthedocs.io/en/latest/contribute.html#contributing-fixture-files) to help us to make the library even better!
|
|
241
|
+
|
|
242
|
+
> git diff 0.6.2.1..HEAD|diffstat
|
|
243
|
+
> 214 files changed, 26960 insertions(+), 6310 deletions(-)
|
|
244
|
+
|
|
196
245
|
For more information on the changes please checkout our [documentation on the API changes](https://python-kasa.readthedocs.io/en/latest/deprecated.html)
|
|
197
246
|
|
|
198
247
|
**Breaking changes:**
|
|
@@ -424,8 +473,8 @@ For more information on the changes please checkout our [documentation on the AP
|
|
|
424
473
|
|
|
425
474
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.6.1...0.6.2)
|
|
426
475
|
|
|
427
|
-
Release highlights:
|
|
428
|
-
* Support for tapo power strips (P300)
|
|
476
|
+
Release highlights:
|
|
477
|
+
* Support for tapo power strips (P300)
|
|
429
478
|
* Performance improvements and bug fixes
|
|
430
479
|
|
|
431
480
|
**Implemented enhancements:**
|
|
@@ -464,9 +513,9 @@ Release highlights:
|
|
|
464
513
|
|
|
465
514
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.6.0.1...0.6.1)
|
|
466
515
|
|
|
467
|
-
Release highlights:
|
|
468
|
-
* Support for tapo wall switches
|
|
469
|
-
* Support for unprovisioned devices
|
|
516
|
+
Release highlights:
|
|
517
|
+
* Support for tapo wall switches
|
|
518
|
+
* Support for unprovisioned devices
|
|
470
519
|
* Performance and stability improvements
|
|
471
520
|
|
|
472
521
|
**Implemented enhancements:**
|
|
@@ -539,17 +588,17 @@ A patch release to improve the protocol handling.
|
|
|
539
588
|
|
|
540
589
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.4...0.6.0)
|
|
541
590
|
|
|
542
|
-
This major brings major changes to the library by adding support for devices that require authentication for communications, all of this being possible thanks to the great work by @sdb9696!
|
|
543
|
-
|
|
544
|
-
This release adds support to a large range of previously unsupported devices, including:
|
|
545
|
-
|
|
546
|
-
* Newer kasa-branded devices, including Matter-enabled devices like KP125M
|
|
547
|
-
* Newer hardware/firmware versions on some models, like EP25, that suddenly changed the used protocol
|
|
548
|
-
* Tapo-branded devices like plugs (P110), light bulbs (KL530), LED strips (L900, L920), and wall switches (KS205, KS225)
|
|
549
|
-
* UK variant of HS110, which was the first device using the new protocol
|
|
550
|
-
|
|
551
|
-
If your device that is not currently listed as supported is working, please consider contributing a test fixture file.
|
|
552
|
-
|
|
591
|
+
This major brings major changes to the library by adding support for devices that require authentication for communications, all of this being possible thanks to the great work by @sdb9696!
|
|
592
|
+
|
|
593
|
+
This release adds support to a large range of previously unsupported devices, including:
|
|
594
|
+
|
|
595
|
+
* Newer kasa-branded devices, including Matter-enabled devices like KP125M
|
|
596
|
+
* Newer hardware/firmware versions on some models, like EP25, that suddenly changed the used protocol
|
|
597
|
+
* Tapo-branded devices like plugs (P110), light bulbs (KL530), LED strips (L900, L920), and wall switches (KS205, KS225)
|
|
598
|
+
* UK variant of HS110, which was the first device using the new protocol
|
|
599
|
+
|
|
600
|
+
If your device that is not currently listed as supported is working, please consider contributing a test fixture file.
|
|
601
|
+
|
|
553
602
|
Special thanks goes to @SimonWilkinson who created the initial PR for the new communication protocol!
|
|
554
603
|
|
|
555
604
|
**Breaking changes:**
|
|
@@ -644,13 +693,13 @@ Special thanks goes to @SimonWilkinson who created the initial PR for the new co
|
|
|
644
693
|
|
|
645
694
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.3...0.5.4)
|
|
646
695
|
|
|
647
|
-
The highlights of this maintenance release:
|
|
648
|
-
|
|
649
|
-
* Support to the alternative discovery protocol and foundational work to support other communication protocols, thanks to @sdb9696.
|
|
650
|
-
* Reliability improvements by avoiding overflowing device buffers, thanks to @cobryan05.
|
|
651
|
-
* Optimizations for downstream device accesses, thanks to @bdraco.
|
|
652
|
-
* Support for both pydantic v1 and v2.
|
|
653
|
-
|
|
696
|
+
The highlights of this maintenance release:
|
|
697
|
+
|
|
698
|
+
* Support to the alternative discovery protocol and foundational work to support other communication protocols, thanks to @sdb9696.
|
|
699
|
+
* Reliability improvements by avoiding overflowing device buffers, thanks to @cobryan05.
|
|
700
|
+
* Optimizations for downstream device accesses, thanks to @bdraco.
|
|
701
|
+
* Support for both pydantic v1 and v2.
|
|
702
|
+
|
|
654
703
|
As always, see the full changelog for details.
|
|
655
704
|
|
|
656
705
|
**Implemented enhancements:**
|
|
@@ -710,8 +759,8 @@ This release adds support for defining the device port and introduces dependency
|
|
|
710
759
|
|
|
711
760
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.1...0.5.2)
|
|
712
761
|
|
|
713
|
-
Besides some small improvements, this release:
|
|
714
|
-
* Adds optional dependency for for `orjson` and `kasa-crypt` to speed-up protocol handling by an order of magnitude.
|
|
762
|
+
Besides some small improvements, this release:
|
|
763
|
+
* Adds optional dependency for for `orjson` and `kasa-crypt` to speed-up protocol handling by an order of magnitude.
|
|
715
764
|
* Drops Python 3.7 support as it is no longer maintained.
|
|
716
765
|
|
|
717
766
|
**Breaking changes:**
|
|
@@ -746,11 +795,11 @@ Besides some small improvements, this release:
|
|
|
746
795
|
|
|
747
796
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.0...0.5.1)
|
|
748
797
|
|
|
749
|
-
This minor release contains mostly small UX fine-tuning and documentation improvements alongside with bug fixes:
|
|
750
|
-
* Improved console tool (JSON output, colorized output if rich is installed)
|
|
751
|
-
* Pretty, colorized console output, if `rich` is installed
|
|
752
|
-
* Support for configuring bulb presets
|
|
753
|
-
* Usage data is now reported in the expected format
|
|
798
|
+
This minor release contains mostly small UX fine-tuning and documentation improvements alongside with bug fixes:
|
|
799
|
+
* Improved console tool (JSON output, colorized output if rich is installed)
|
|
800
|
+
* Pretty, colorized console output, if `rich` is installed
|
|
801
|
+
* Support for configuring bulb presets
|
|
802
|
+
* Usage data is now reported in the expected format
|
|
754
803
|
* Dependency pinning is relaxed to give downstreams more control
|
|
755
804
|
|
|
756
805
|
**Breaking changes:**
|
|
@@ -814,21 +863,21 @@ This minor release contains mostly small UX fine-tuning and documentation improv
|
|
|
814
863
|
|
|
815
864
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.4.3...0.5.0)
|
|
816
865
|
|
|
817
|
-
This is the first release of 0.5 series which includes converting the code base towards more modular approach where device-exposed modules (e.g., emeter, antitheft, or schedule) are implemented in their separate python modules to decouple them from the device-specific classes.
|
|
818
|
-
|
|
819
|
-
There should be no API breaking changes, but some previous issues hint that there may be as information from all supported modules are now requested during each update cycle (depending on the device type):
|
|
820
|
-
* Basic system info
|
|
821
|
-
* Emeter
|
|
822
|
-
* Time - properties (like `on_since`) use now time from the device for calculation to avoid jitter caused by different time between the host and the device
|
|
823
|
-
* Usage statistics - similar interface to emeter, but reports on-time statistics instead of energy consumption (new)
|
|
824
|
-
* Countdown (new)
|
|
825
|
-
* Antitheft (new)
|
|
826
|
-
* Schedule (new)
|
|
827
|
-
* Motion - for configuring motion settings on some dimmers (new)
|
|
828
|
-
* Ambientlight - for configuring brightness limits when motion sensor actuates on some dimmers (new)
|
|
829
|
-
* Cloud - information about cloud connectivity (new)
|
|
830
|
-
|
|
831
|
-
For developers, the new functionalities are currently only exposed through the implementation modules accessible through `modules` property.
|
|
866
|
+
This is the first release of 0.5 series which includes converting the code base towards more modular approach where device-exposed modules (e.g., emeter, antitheft, or schedule) are implemented in their separate python modules to decouple them from the device-specific classes.
|
|
867
|
+
|
|
868
|
+
There should be no API breaking changes, but some previous issues hint that there may be as information from all supported modules are now requested during each update cycle (depending on the device type):
|
|
869
|
+
* Basic system info
|
|
870
|
+
* Emeter
|
|
871
|
+
* Time - properties (like `on_since`) use now time from the device for calculation to avoid jitter caused by different time between the host and the device
|
|
872
|
+
* Usage statistics - similar interface to emeter, but reports on-time statistics instead of energy consumption (new)
|
|
873
|
+
* Countdown (new)
|
|
874
|
+
* Antitheft (new)
|
|
875
|
+
* Schedule (new)
|
|
876
|
+
* Motion - for configuring motion settings on some dimmers (new)
|
|
877
|
+
* Ambientlight - for configuring brightness limits when motion sensor actuates on some dimmers (new)
|
|
878
|
+
* Cloud - information about cloud connectivity (new)
|
|
879
|
+
|
|
880
|
+
For developers, the new functionalities are currently only exposed through the implementation modules accessible through `modules` property.
|
|
832
881
|
Pull requests improving the functionality of modules as well as adding better interfaces to device classes are welcome!
|
|
833
882
|
|
|
834
883
|
**Breaking changes:**
|
|
@@ -1,38 +1,41 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: python-kasa
|
|
3
|
-
Version: 0.7.
|
|
4
|
-
Summary: Python API for TP-Link Kasa
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
Version: 0.7.4
|
|
4
|
+
Summary: Python API for TP-Link Kasa and Tapo devices
|
|
5
|
+
Project-URL: Homepage, https://github.com/python-kasa/python-kasa
|
|
6
|
+
Project-URL: Bug Tracker, https://github.com/python-kasa/python-kasa/issues
|
|
7
|
+
Project-URL: Documentation, https://python-kasa.readthedocs.io
|
|
8
|
+
Project-URL: Repository, https://github.com/python-kasa/python-kasa
|
|
7
9
|
Author: python-kasa developers
|
|
8
|
-
|
|
10
|
+
License: GPL-3.0-or-later
|
|
11
|
+
License-File: LICENSE
|
|
9
12
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
10
14
|
Classifier: Programming Language :: Python :: 3
|
|
11
15
|
Classifier: Programming Language :: Python :: 3.9
|
|
12
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
13
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Requires-Python: <4.0,>=3.9
|
|
21
|
+
Requires-Dist: aiohttp>=3
|
|
22
|
+
Requires-Dist: async-timeout>=3.0.0
|
|
23
|
+
Requires-Dist: asyncclick>=8.1.7
|
|
24
|
+
Requires-Dist: cryptography>=1.9
|
|
25
|
+
Requires-Dist: pydantic>=1.10.15
|
|
26
|
+
Requires-Dist: typing-extensions<5.0,>=4.12.2
|
|
15
27
|
Provides-Extra: docs
|
|
28
|
+
Requires-Dist: docutils>=0.17; extra == 'docs'
|
|
29
|
+
Requires-Dist: myst-parser; extra == 'docs'
|
|
30
|
+
Requires-Dist: sphinx-rtd-theme~=2.0; extra == 'docs'
|
|
31
|
+
Requires-Dist: sphinxcontrib-programoutput~=0.0; extra == 'docs'
|
|
32
|
+
Requires-Dist: sphinx~=5.0; extra == 'docs'
|
|
16
33
|
Provides-Extra: shell
|
|
34
|
+
Requires-Dist: ptpython; extra == 'shell'
|
|
35
|
+
Requires-Dist: rich; extra == 'shell'
|
|
17
36
|
Provides-Extra: speedups
|
|
18
|
-
Requires-Dist:
|
|
19
|
-
Requires-Dist:
|
|
20
|
-
Requires-Dist: asyncclick (>=8.1.7)
|
|
21
|
-
Requires-Dist: cryptography (>=1.9)
|
|
22
|
-
Requires-Dist: docutils (>=0.17) ; extra == "docs"
|
|
23
|
-
Requires-Dist: kasa-crypt (>=0.2.0) ; extra == "speedups"
|
|
24
|
-
Requires-Dist: myst-parser ; extra == "docs"
|
|
25
|
-
Requires-Dist: orjson (>=3.9.1) ; extra == "speedups"
|
|
26
|
-
Requires-Dist: ptpython ; extra == "shell"
|
|
27
|
-
Requires-Dist: pydantic (>=1.10.15)
|
|
28
|
-
Requires-Dist: rich ; extra == "shell"
|
|
29
|
-
Requires-Dist: sphinx (>=5,<6) ; extra == "docs"
|
|
30
|
-
Requires-Dist: sphinx_rtd_theme (>=2,<3) ; extra == "docs"
|
|
31
|
-
Requires-Dist: sphinxcontrib-programoutput (>=0,<1) ; extra == "docs"
|
|
32
|
-
Requires-Dist: typing-extensions (>=4.12.2,<5.0)
|
|
33
|
-
Project-URL: Bug Tracker, https://github.com/python-kasa/python-kasa/issues
|
|
34
|
-
Project-URL: Documentation, https://python-kasa.readthedocs.io
|
|
35
|
-
Project-URL: Repository, https://github.com/python-kasa/python-kasa
|
|
37
|
+
Requires-Dist: kasa-crypt>=0.2.0; extra == 'speedups'
|
|
38
|
+
Requires-Dist: orjson>=3.9.1; extra == 'speedups'
|
|
36
39
|
Description-Content-Type: text/markdown
|
|
37
40
|
|
|
38
41
|
# python-kasa
|
|
@@ -57,11 +60,12 @@ You can install the most recent release using pip:
|
|
|
57
60
|
pip install python-kasa
|
|
58
61
|
```
|
|
59
62
|
|
|
60
|
-
Alternatively, you can clone this repository and use
|
|
63
|
+
Alternatively, you can clone this repository and use `uv` to install the development version:
|
|
61
64
|
```
|
|
62
65
|
git clone https://github.com/python-kasa/python-kasa.git
|
|
63
66
|
cd python-kasa/
|
|
64
|
-
|
|
67
|
+
uv sync --all-extras
|
|
68
|
+
uv run kasa
|
|
65
69
|
```
|
|
66
70
|
|
|
67
71
|
If you have not yet provisioned your device, [you can do so using the cli tool](https://python-kasa.readthedocs.io/en/latest/cli.html#provisioning).
|
|
@@ -264,4 +268,3 @@ See [supported devices in our documentation](SUPPORTED.md) for more detailed inf
|
|
|
264
268
|
* [plugp100, another tapo library](https://github.com/petretiandrea/plugp100)
|
|
265
269
|
* [Home Assistant integration](https://github.com/petretiandrea/home-assistant-tapo-p100)
|
|
266
270
|
* [rust and python implementation for tapo devices](https://github.com/mihai-dinculescu/tapo/)
|
|
267
|
-
|
|
@@ -20,11 +20,12 @@ You can install the most recent release using pip:
|
|
|
20
20
|
pip install python-kasa
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Alternatively, you can clone this repository and use
|
|
23
|
+
Alternatively, you can clone this repository and use `uv` to install the development version:
|
|
24
24
|
```
|
|
25
25
|
git clone https://github.com/python-kasa/python-kasa.git
|
|
26
26
|
cd python-kasa/
|
|
27
|
-
|
|
27
|
+
uv sync --all-extras
|
|
28
|
+
uv run kasa
|
|
28
29
|
```
|
|
29
30
|
|
|
30
31
|
If you have not yet provisioned your device, [you can do so using the cli tool](https://python-kasa.readthedocs.io/en/latest/cli.html#provisioning).
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Tools for developers
|
|
2
|
+
|
|
3
|
+
This directory contains some simple scripts that can be useful for developers.
|
|
4
|
+
|
|
5
|
+
## dump_devinfo
|
|
6
|
+
* Queries the device (if --host is given) or discover devices and creates fixture files that can be added to the test suite.
|
|
7
|
+
|
|
8
|
+
```shell
|
|
9
|
+
Usage: python -m devtools.dump_devinfo [OPTIONS]
|
|
10
|
+
|
|
11
|
+
Generate devinfo files for devices.
|
|
12
|
+
|
|
13
|
+
Use --host (for a single device) or --target (for a complete network).
|
|
14
|
+
|
|
15
|
+
Options:
|
|
16
|
+
--host TEXT Target host.
|
|
17
|
+
--target TEXT Target network for discovery.
|
|
18
|
+
--username TEXT Username/email address to authenticate to device.
|
|
19
|
+
--password TEXT Password to use to authenticate to device.
|
|
20
|
+
--basedir TEXT Base directory for the git repository
|
|
21
|
+
--autosave Save without prompting
|
|
22
|
+
-d, --debug
|
|
23
|
+
--help Show this message and exit.
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## create_module_fixtures
|
|
27
|
+
|
|
28
|
+
* Queries the device for all supported modules and outputs module-based fixture files for each device.
|
|
29
|
+
* This could be used to create fixture files for module-specific tests, but it might also be useful for other use-cases.
|
|
30
|
+
|
|
31
|
+
```shell
|
|
32
|
+
Usage: create_module_fixtures.py [OPTIONS] OUTPUTDIR
|
|
33
|
+
|
|
34
|
+
Create module fixtures for given host/network.
|
|
35
|
+
|
|
36
|
+
Arguments:
|
|
37
|
+
OUTPUTDIR [required]
|
|
38
|
+
|
|
39
|
+
Options:
|
|
40
|
+
--host TEXT
|
|
41
|
+
--network TEXT
|
|
42
|
+
--install-completion Install completion for the current shell.
|
|
43
|
+
--show-completion Show completion for the current shell, to copy it or
|
|
44
|
+
customize the installation.
|
|
45
|
+
--help Show this message and exit.
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## parse_pcap
|
|
49
|
+
|
|
50
|
+
* Requires dpkt (pip install dpkt)
|
|
51
|
+
* Reads a pcap file and prints out the device communications
|
|
52
|
+
|
|
53
|
+
```shell
|
|
54
|
+
Usage: parse_pcap.py [OPTIONS] FILE
|
|
55
|
+
|
|
56
|
+
Parse pcap file and pretty print the communications and some statistics.
|
|
57
|
+
|
|
58
|
+
Options:
|
|
59
|
+
--help Show this message and exit.
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## perftest
|
|
63
|
+
|
|
64
|
+
* Runs several rounds of update cycles for the given list of addresses, and prints out statistics about the performance
|
|
65
|
+
|
|
66
|
+
```shell
|
|
67
|
+
Usage: perf_test.py [OPTIONS] [ADDRS]...
|
|
68
|
+
|
|
69
|
+
Options:
|
|
70
|
+
--rounds INTEGER
|
|
71
|
+
--help Show this message and exit.
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
```shell
|
|
75
|
+
$ python perf_test.py 192.168.xx.x 192.168.xx.y 192.168.xx.z 192.168.xx.f
|
|
76
|
+
Running 5 rounds on ('192.168.xx.x', '192.168.xx.y', '192.168.xx.z', '192.168.xx.f')
|
|
77
|
+
=== Testing using gather on all devices ===
|
|
78
|
+
took
|
|
79
|
+
count mean std min 25% 50% 75% max
|
|
80
|
+
type
|
|
81
|
+
concurrently 5.0 0.097161 0.045544 0.05260 0.055332 0.088811 0.143082 0.145981
|
|
82
|
+
sequential 5.0 0.150506 0.005798 0.14162 0.149065 0.150499 0.155579 0.155768
|
|
83
|
+
=== Testing per-device performance ===
|
|
84
|
+
took
|
|
85
|
+
count mean std min 25% 50% 75% max
|
|
86
|
+
id
|
|
87
|
+
<id>-HS110(EU) 5.0 0.044917 0.014984 0.035836 0.037728 0.037950 0.041610 0.071458
|
|
88
|
+
<id>-KL130(EU) 5.0 0.067626 0.032027 0.046451 0.046797 0.048406 0.076136 0.120342
|
|
89
|
+
<id>-HS110(EU) 5.0 0.055700 0.016174 0.042086 0.045578 0.048905 0.059869 0.082064
|
|
90
|
+
<id>-KP303(UK) 5.0 0.010298 0.003765 0.007773 0.007968 0.008546 0.010439 0.016763
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## benchmark
|
|
94
|
+
|
|
95
|
+
* Benchmark the protocol
|
|
96
|
+
|
|
97
|
+
```shell
|
|
98
|
+
% python3 devtools/bench/benchmark.py
|
|
99
|
+
New parser, parsing 100000 messages took 0.6339647499989951 seconds
|
|
100
|
+
Old parser, parsing 100000 messages took 9.473990250000497 seconds
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
## parse_pcap_klap
|
|
105
|
+
|
|
106
|
+
* A tool to allow KLAP data to be exported, in JSON, from a PCAP file of encrypted requests.
|
|
107
|
+
|
|
108
|
+
* NOTE: must install pyshark (`pip install pyshark`).
|
|
109
|
+
* pyshark requires Wireshark or tshark to be installed on windows and tshark to be installed
|
|
110
|
+
on linux (`apt get tshark`)
|
|
111
|
+
|
|
112
|
+
```shell
|
|
113
|
+
Usage: parse_pcap_klap.py [OPTIONS]
|
|
114
|
+
|
|
115
|
+
Export KLAP data in JSON format from a PCAP file.
|
|
116
|
+
|
|
117
|
+
Options:
|
|
118
|
+
--host TEXT the IP of the smart device as it appears in the pcap
|
|
119
|
+
file. [required]
|
|
120
|
+
--username TEXT Username/email address to authenticate to device.
|
|
121
|
+
[required]
|
|
122
|
+
--password TEXT Password to use to authenticate to device.
|
|
123
|
+
[required]
|
|
124
|
+
--pcap-file-path TEXT The path to the pcap file to parse. [required]
|
|
125
|
+
-o, --output TEXT The name of the output file, relative to the current
|
|
126
|
+
directory.
|
|
127
|
+
--help Show this message and exit.
|
|
128
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Devtools package."""
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Benchmark the new parser against the old parser."""
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
import timeit
|
|
5
|
+
|
|
6
|
+
import orjson
|
|
7
|
+
from kasa_crypt import decrypt, encrypt
|
|
8
|
+
|
|
9
|
+
from devtools.bench.utils.data import REQUEST, WIRE_RESPONSE
|
|
10
|
+
from devtools.bench.utils.original import OriginalTPLinkSmartHomeProtocol
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def original_request_response() -> None:
|
|
14
|
+
"""Benchmark the original parser."""
|
|
15
|
+
OriginalTPLinkSmartHomeProtocol.encrypt(json.dumps(REQUEST))
|
|
16
|
+
json.loads(OriginalTPLinkSmartHomeProtocol.decrypt(WIRE_RESPONSE[4:]))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def new_request_response() -> None:
|
|
20
|
+
"""Benchmark the new parser."""
|
|
21
|
+
encrypt(orjson.dumps(REQUEST).decode())
|
|
22
|
+
orjson.loads(decrypt(WIRE_RESPONSE[4:]))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
count = 100000
|
|
26
|
+
|
|
27
|
+
time = timeit.Timer(new_request_response).timeit(count)
|
|
28
|
+
print(f"New parser, parsing {count} messages took {time} seconds")
|
|
29
|
+
|
|
30
|
+
time = timeit.Timer(original_request_response).timeit(count)
|
|
31
|
+
print(f"Old parser, parsing {count} messages took {time} seconds")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Benchmark utils."""
|