LIbrary to interact with Tecnoalarm TCS app backend
Project description
Python library to interface with myTecnoalarm TCS app cloud services
This repo provides code to interface with the cloud services of the "my Tecnoalarm TCS" app. Funcionality has been reverse-engineered and may not be complete.
How to install it
pip install pytcs-tecnoalarm
How to use it
To use this library you need to authenticate to the cloud service.
First login
Open an interactive prompt and run:
from pytcs_tecnoalarm import TCSSession
s = TCSSession()
s.login(email, password)
If your account does not have 2 factor authenticator, you will be logged in.
Otherwise, this will throw an OTPException
Get the code from your email and run
s.login(email, password, pin)
If everything goes right, you will have an authenticated token and app-id to re-use in the future (does not seem to expire)
extract then with
s.token
s.appid
Future logins
Simply pass your token and appid when instantiating the session
from pytcs_tecnoalarm import TCSSession
s = TCSSession(token, appid)
This will run the .re_auth() function that should re-enable the token for immediate use.
The token never changes.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytcs_tecnoalarm-0.3.tar.gz.
File metadata
- Download URL: pytcs_tecnoalarm-0.3.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29e25405b136ad3e71061dc86dc4c5742af9b3a71a20a74a5c2d3599735e6fb6
|
|
| MD5 |
4bbaf36470c4959a54fddf3222a032c7
|
|
| BLAKE2b-256 |
dc4ba4fe0f52d0dbdb11d3a9382253a6e34f1a8c33f0da21b8bcf589bf008f69
|
File details
Details for the file pytcs_tecnoalarm-0.3-py3-none-any.whl.
File metadata
- Download URL: pytcs_tecnoalarm-0.3-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
492e0cb2859ad37bc9773ed88cb55d7adb501ba133d9d592a9458f1a4c283457
|
|
| MD5 |
bd37f8755ca63c456529b6a63c80c638
|
|
| BLAKE2b-256 |
6cb2e14150d1f8794d3819175aba677120d749af730837e81f5c6cf71d9766c6
|