Enable shell extra for installing ptpython and rich (#782)

Co-authored-by: Teemu R. <tpr@iki.fi>
This commit is contained in:
Steven B
2024-02-20 18:40:28 +00:00
committed by GitHub
parent 5ba3676422
commit 4beff228c9
5 changed files with 130 additions and 10 deletions

View File

@@ -20,11 +20,19 @@ You can install the most recent release using pip:
pip install python-kasa
```
For enhanced cli tool support (coloring, embedded shell) install with `[shell]`:
```
pip install python-kasa[shell]
```
If you are using cpython, it is recommended to install with `[speedups]` to enable orjson (faster json support):
```
pip install python-kasa[speedups]
```
or for both:
```
pip install python-kasa[speedups, shell]
```
With `[speedups]`, the protocol overhead is roughly an order of magnitude lower (benchmarks available in devtools).
Alternatively, you can clone this repository and use poetry to install the development version: