Skip to main content

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


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.2.tar.gz (27.3 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.2-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytcs_tecnoalarm-0.2.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for pytcs_tecnoalarm-0.2.tar.gz
Algorithm Hash digest
SHA256 903f1cc5a03da7852cb1e131c36a8a5c02c21f9acdd21c2276792ab787ef2d87
MD5 9de89da0ba2a9026a9d0067730c48714
BLAKE2b-256 5a5705a6a3f926f69fcef19465f1637c8beeb35f48a1ddbdf5d235ac3ac99762

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytcs_tecnoalarm-0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for pytcs_tecnoalarm-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bb39a8225f3dc879728af216c484f7bf16b37981e2f8dc6519023e91385d7bee
MD5 ee855222e0b233c2ef90a1ac484274e7
BLAKE2b-256 ebd1d787cefa0a01455a3c78d7e96228b7b2c4fca456cbf00d874b3b4fa34bfe

See more details on using hashes here.

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