Skip to main content

LIbrary to interact with Tecnoalarm TCS app backend

Reason this release was yanked:

bugged

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

You can also use directly the login.py script, it will handle the OTP and print your Token and App ID

python login.py

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytcs_tecnoalarm-0.4.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytcs_tecnoalarm-0.4-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file pytcs_tecnoalarm-0.4.tar.gz.

File metadata

  • Download URL: pytcs_tecnoalarm-0.4.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pytcs_tecnoalarm-0.4.tar.gz
Algorithm Hash digest
SHA256 c405243baa6cc6b15235c8230c1948a2d140c2ea2736350fe7e2d0b937bbc36c
MD5 147f5178eee6f57d1776b8b4685c5eb1
BLAKE2b-256 6ee425f462e7efa9751ca422ea11441fd1810d22778b76a778055efdbece4722

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytcs_tecnoalarm-0.4.tar.gz:

Publisher: python-publish.yml on icovada/pytcs-tecnoalarm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytcs_tecnoalarm-0.4-py3-none-any.whl.

File metadata

  • Download URL: pytcs_tecnoalarm-0.4-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pytcs_tecnoalarm-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ad7c4279275a6051f2ca47adae5a2854da47f22daeea7733903a797f4e28a1a2
MD5 6ea17f1b6b5a22fb823f2191b3771b10
BLAKE2b-256 465abf64a69f56579badca4c9483a6f4144c0133937b477a810f27202d2da0ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytcs_tecnoalarm-0.4-py3-none-any.whl:

Publisher: python-publish.yml on icovada/pytcs-tecnoalarm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page