python-kasa/kasa
Steven B. 254a9af5c1
Update DiscoveryResult to use Mashumaro instead of pydantic (#1231)
Mashumaro is faster and doesn't come with all versioning problems that
pydantic does.

A basic perf test deserializing all of our discovery results fixtures
shows mashumaro as being about 6 times faster deserializing dicts than
pydantic. It's much faster parsing from a json string but that's likely
because it uses orjson under the hood although that's not really our use
case at the moment.

```
PYDANTIC - ms
=================
json       dict
-----------------
4.7665     1.3268
3.1548     1.5922
3.1130     1.8039
4.2834     2.7606
2.0669     1.3757
2.0163     1.6377
3.1667     1.3561
4.1296     2.7297
2.0132     1.3471
4.0648     1.4105

MASHUMARO - ms
=================
json       dict
-----------------
0.5977     0.5543
0.5336     0.2983
0.3955     0.2549
0.6516     0.2742
0.5386     0.2706
0.6678     0.2580
0.4120     0.2511
0.3836     0.2472
0.4020     0.2465
0.4268     0.2487
```
2024-11-12 22:00:04 +01:00
..
cli Update DiscoveryResult to use Mashumaro instead of pydantic (#1231) 2024-11-12 22:00:04 +01:00
experimental Add SmartCamera Led Module (#1249) 2024-11-12 19:34:02 +00:00
interfaces Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
iot Fix test framework running against real devices (#1235) 2024-11-11 17:41:31 +00:00
smart Move transports into their own package (#1247) 2024-11-12 14:40:44 +01:00
transports Move transports into their own package (#1247) 2024-11-12 14:40:44 +01:00
__init__.py Move transports into their own package (#1247) 2024-11-12 14:40:44 +01:00
cachedzoneinfo.py Cache zoneinfo for smart devices (#1156) 2024-10-08 12:21:01 +01:00
credentials.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
device_factory.py Move transports into their own package (#1247) 2024-11-12 14:40:44 +01:00
device_type.py Initial TapoCamera support (#1165) 2024-10-16 16:53:52 +01:00
device.py Move transports into their own package (#1247) 2024-11-12 14:40:44 +01:00
deviceconfig.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
discover.py Update DiscoveryResult to use Mashumaro instead of pydantic (#1231) 2024-11-12 22:00:04 +01:00
emeterstatus.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
exceptions.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
feature.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
httpclient.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
iotprotocol.py Move transports into their own package (#1247) 2024-11-12 14:40:44 +01:00
json.py Update DiscoveryResult to use Mashumaro instead of pydantic (#1231) 2024-11-12 22:00:04 +01:00
module.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
modulemapping.py Create common interfaces for remaining device types (#895) 2024-05-10 19:29:28 +01:00
modulemapping.pyi Create common interfaces for remaining device types (#895) 2024-05-10 19:29:28 +01:00
protocol.py Move transports into their own package (#1247) 2024-11-12 14:40:44 +01:00
py.typed Add py.typed to flag that the package is typed (#251) 2021-11-15 18:21:24 +01:00
smartprotocol.py Move transports into their own package (#1247) 2024-11-12 14:40:44 +01:00