Skip to content

Commit e271f35

Browse files
authored
Add alternate install to README.md
1 parent 33a90d4 commit e271f35

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,22 @@ pipx install tinytuya
4242

4343
Pip will attempt to install `cryptography`, `requests` and `colorama` if not already installed.
4444

45+
### Alternate Install on Space- or Dependency-Limited Systems
46+
47+
On systems with limited space (such as an OpenWRT router), or if you would like to use a different cryptography library, you can install TinyTuya without automatic dependencies and manually install them yourself.
48+
49+
First, install a cryptography library. TinyTuya supports:
50+
* *cryptography* - Newest, requires OpenSSL - `python -m pip install cryptography`
51+
* *PyCryptodome* - Another good alternative, does not require OpenSSL, still actively developed - `python -m pip install pycryptodome` or `python -m pip install pycryptodomex`
52+
* *pyaes* - Pure Python, but is abandoned and does not support v3.5+ devices - `python -m pip install pyaes`
53+
* *PyCrypto* - Predecessor to PyCryptodome, is also abandoned and does not support v3.5+ devices - `python -m pip install pycrypto`
54+
55+
Optional: install `colorama` for terminal color support: `python -m pip install colorama`
56+
57+
Required for Wizard or Cloud functionality, Optional otherwise: install `requests` for Cloud functions to work: `python -m pip install requests`
58+
59+
Finally, install TinyTuya without dependencies: `python -m pip install --no-deps tinytuya`
60+
4561
## Tuya Device Preparation
4662

4763
Controlling and monitoring Tuya devices on your network requires the following:

0 commit comments

Comments
 (0)