updates
This commit is contained in:
1
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/INSTALLER
vendored
Normal file
1
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/INSTALLER
vendored
Normal file
@ -0,0 +1 @@
|
||||
pip
|
21
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/LICENSE
vendored
Normal file
21
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/LICENSE
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 Juraj Nyíri
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
124
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/METADATA
vendored
Normal file
124
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/METADATA
vendored
Normal file
@ -0,0 +1,124 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: pytapo
|
||||
Version: 2.9.1
|
||||
Summary: Python library for communication with Tapo Cameras
|
||||
Home-page: https://github.com/JurajNyiri/pytapo
|
||||
Author: Juraj Nyíri
|
||||
Author-email: juraj.nyiri@gmail.com
|
||||
License: MIT
|
||||
Platform: UNKNOWN
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Operating System :: OS Independent
|
||||
Description-Content-Type: text/markdown
|
||||
License-File: LICENSE
|
||||
Requires-Dist: requests
|
||||
Requires-Dist: urllib3
|
||||
Requires-Dist: pycryptodome
|
||||
|
||||
# PyTapo
|
||||
|
||||
Python library for communication with Tapo Cameras
|
||||
|
||||
## Install:
|
||||
|
||||
```
|
||||
python3 -m pip install pytapo
|
||||
```
|
||||
|
||||
## Usage examples:
|
||||
|
||||
### Initiate library:
|
||||
|
||||
```
|
||||
from pytapo import Tapo
|
||||
|
||||
user = "" # user you set in Advanced Settings -> Camera Account
|
||||
password = "" # password you set in Advanced Settings -> Camera Account
|
||||
host = "" # ip of the camera, example: 192.168.1.52
|
||||
|
||||
tapo = Tapo(host, user, password)
|
||||
|
||||
print(tapo.getBasicInfo())
|
||||
```
|
||||
|
||||
## Authentication
|
||||
|
||||
Depending on your camera model and firmware version, the authentication method varies.
|
||||
|
||||
Normally you should be able to authenticate using the "camera account" created via the Tapo App (Settings > Advanced settings > Camera account).
|
||||
|
||||
In case of a similar stack trace:
|
||||
|
||||
```
|
||||
Traceback (most recent call last):
|
||||
File "/home/user/Projects/pytapo/pytapo/__init__.py", line 41, in __init__
|
||||
self.basicInfo = self.getBasicInfo()
|
||||
File "/home/user/Projects/pytapo/pytapo/__init__.py", line 232, in getBasicInfo
|
||||
return self.performRequest(
|
||||
File "/home/user/Projects/pytapo/pytapo/__init__.py", line 95, in performRequest
|
||||
self.ensureAuthenticated()
|
||||
File "/home/user/Projects/pytapo/pytapo/__init__.py", line 61, in ensureAuthenticated
|
||||
return self.refreshStok()
|
||||
File "/home/user/Projects/pytapo/pytapo/__init__.py", line 80, in refreshStok
|
||||
raise Exception("Invalid authentication data")
|
||||
Exception: Invalid authentication data
|
||||
```
|
||||
|
||||
Attempt to authenticate using `admin` as `user` and your TP-Link cloud account password as `password`.
|
||||
|
||||
## Contributions:
|
||||
|
||||
Contributions to pytapo are welcomed.
|
||||
|
||||
By creating a PR you acknowledge and agree that you are not breaking any TOS, law and/or have a permission to provide and share the code changes.
|
||||
|
||||
Owner of this repository is not legally responsible for any PRs or code changes to this project created by 3rd parties.
|
||||
|
||||
When you make a new change to the code base, make sure to have 100% unit test coverage, see below for more information about tests.
|
||||
|
||||
### Test instructions
|
||||
|
||||
Set the following environment variables:
|
||||
|
||||
`PYTAPO_USER` - user you set in Advanced Settings -> Camera Account
|
||||
|
||||
`PYTAPO_PASSWORD` - password you set in Advanced Settings -> Camera Account
|
||||
|
||||
`PYTAPO_IP` - ip of the camera, example: 192.168.1.52
|
||||
|
||||
Install `pre-commit` and `tox` from pip.
|
||||
|
||||
Run `pre-commit install` and `pre-commit install -t pre-push`.
|
||||
|
||||
Then run `tox` to run all the tests.
|
||||
|
||||
Linters are ran on every commit.
|
||||
|
||||
Tests are ran on push.
|
||||
|
||||
Your camera may do all the actions supported by this library, including, but not limited to, move, change privacy mode and reboot while tests are running. Camera does not format SD card during tests.
|
||||
|
||||
After the tests are done, your camera should be in the initial state.
|
||||
|
||||
## Thank you
|
||||
|
||||
- [Dale Pavey](https://research.nccgroup.com/2020/07/31/lights-camera-hacked-an-insight-into-the-world-of-popular-ip-cameras/) from NCC Group for the initial research on the Tapo C200
|
||||
- [likaci](https://github.com/likaci) and [his github repository](https://github.com/likaci/mercury-ipc-control) for the research on the Mercury camera on which tapo is based
|
||||
- [Tim Zhang](https://github.com/ttimasdf) for additional research for Mercury camera on [his github repository](https://github.com/ttimasdf/mercury-ipc-control)
|
||||
- [Gábor Szabados](https://github.com/GSzabados) for doing research and gathering all the information above in [Home Assistant Community forum](https://community.home-assistant.io/t/use-pan-tilt-function-for-tp-link-tapo-c200-from-home-assistant/170143/18)
|
||||
- [Davide Depau](https://github.com/Depau) for additional [research](https://md.depau.eu/s/r1Ys_oWoP) of the cameras and work on pytapo library
|
||||
|
||||
# Disclaimer
|
||||
|
||||
Pytapo is an unofficial module for achieving interoperability with Tapo cameras.
|
||||
|
||||
Author is in no way affiliated with Tp-Link or Tapo.
|
||||
|
||||
All the api requests used within the library are available and published on the internet (examples linked above) and this module is purely just a wrapper around those https requests.
|
||||
|
||||
Author does not guarantee functionality of this library and is not responsible for any damage.
|
||||
|
||||
All product names, trademarks and registered trademarks in this repository, are property of their respective owners.
|
||||
|
||||
|
27
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/RECORD
vendored
Normal file
27
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/RECORD
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
pytapo-2.9.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
pytapo-2.9.1.dist-info/LICENSE,sha256=-Gohgu4ID1c6R3KkZdPntxh5utGTdmVGJeB4QhIm4ZM,1069
|
||||
pytapo-2.9.1.dist-info/METADATA,sha256=qI-m0f48Tsccjv6q3x1_NxJznDZVYok0QnELgcSbLAc,4728
|
||||
pytapo-2.9.1.dist-info/RECORD,,
|
||||
pytapo-2.9.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
pytapo-2.9.1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
||||
pytapo-2.9.1.dist-info/top_level.txt,sha256=2LSWwAlazOi30LD9R8o-XOGMsTPXixLD_qzGQmFrwwA,7
|
||||
pytapo/ERROR_CODES.py,sha256=ca90Pi1ZaBeZYn87B6Sx7trjL8vSLpD4--uA_29akig,345
|
||||
pytapo/__init__.py,sha256=j3LtLc_dkMjGQne4dTTA3t53dHB1EU66Z9Il4yCfQNA,31555
|
||||
pytapo/__pycache__/ERROR_CODES.cpython-310.pyc,,
|
||||
pytapo/__pycache__/__init__.cpython-310.pyc,,
|
||||
pytapo/__pycache__/const.cpython-310.pyc,,
|
||||
pytapo/const.py,sha256=ZwIwK6ZAmmIBHzNZNSjny3rAO3rWewo9quWdeLgriI8,412
|
||||
pytapo/media_stream/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
pytapo/media_stream/__pycache__/__init__.cpython-310.pyc,,
|
||||
pytapo/media_stream/__pycache__/_utils.cpython-310.pyc,,
|
||||
pytapo/media_stream/__pycache__/crypto.cpython-310.pyc,,
|
||||
pytapo/media_stream/__pycache__/error.cpython-310.pyc,,
|
||||
pytapo/media_stream/__pycache__/response.cpython-310.pyc,,
|
||||
pytapo/media_stream/__pycache__/session.cpython-310.pyc,,
|
||||
pytapo/media_stream/_utils.py,sha256=_7zkj5Weay2bEYKf7_YaqyjdM720DS-IW1-ZdEdLwok,843
|
||||
pytapo/media_stream/crypto.py,sha256=d9E7J0iwbXjDyd5mRMnqNF1w8tZ97WWmxbXc44ntGWc,2286
|
||||
pytapo/media_stream/error.py,sha256=lxYqTkxPBECLM4xO8AWKKyjtDh5niYB1MHIwsCB10nA,607
|
||||
pytapo/media_stream/response.py,sha256=_w4wzVC8LYc-9QeePD_-FTOUdfpbLuj1TI2N2UrbiGg,589
|
||||
pytapo/media_stream/session.py,sha256=fZDb0tRX_Gb61ITCbYJO9H7ujsqbWWBUDPp4eGVh9Uw,18469
|
||||
pytapo/media_stream/temp.py,sha256=8RP1K_f4BHLwylACXbPqli1SfbTNWOMVPmnYE7Eo5AU,922
|
||||
pytapo/temp.py,sha256=VJglwz1iXg8vJMxMNjXCWKNfLi_nEabB0suHySKnRnc,2700
|
0
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/REQUESTED
vendored
Normal file
0
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/REQUESTED
vendored
Normal file
5
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/WHEEL
vendored
Normal file
5
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/WHEEL
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: bdist_wheel (0.37.1)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
|
1
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/top_level.txt
vendored
Normal file
1
deps/lib/python3.10/site-packages/pytapo-2.9.1.dist-info/top_level.txt
vendored
Normal file
@ -0,0 +1 @@
|
||||
pytapo
|
Reference in New Issue
Block a user