Skip to main content

SINRIC PRO

This is a python library for alexa home automation skill

SINRIC PRO —> https://sinric.pro/

Functions:

  • Automate your home using alexa with sinricpro

Installation :

Python3

python3 -m pip install pysinric --user

Pro Switch Demo:

from sinric import SinricPro
from sinric import SinricProUdp
from credentials import apiKey, deviceId


def power_state(did, state):
    # Alexa, turn ON/OFF Device
    print(did, state['state'])
    return True, state['state']


callbacks = {
'powerState': power_state
}

if __name__ == '__main__':
    client = SinricPro(apiKey, deviceId, callbacks, enable_trace=False)
    udp_client = SinricProUdp(callbacks)
    udp_client.enableUdpPrint(False)  # Set it to True to start printing request UDP JSON
    client.handle_all(udp_client)

Metadata

Release files for sinricpro 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sinricpro 0.0.9
File Size Uploaded Provenance Actions
sinricpro-0.0.9.tar.gz 9.1 kB Without provenance Details for sinricpro-0.0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sinricpro 0.0.9
File Interpreter ABI Platform Actions
sinricpro-0.0.9-py3-none-any.whl Python 3 none any Details for sinricpro-0.0.9-py3-none-any.whl

Total release size: 24.6 kB

Release files / sinricpro-0.0.9.tar.gz

Download URL sinricpro-0.0.9.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
324a1fcbe1c2914231fdee0d1ff9018a6547a523e8df220f7520bfbe06438d57
BLAKE2b-256 checksum
How to use checksums
31cb227015b8b23d1161a8a56f059715c3490720ee94e0f02ea6e209dd885c73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / sinricpro-0.0.9-py3-none-any.whl

Download URL sinricpro-0.0.9-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46504e39c276ecb33f3a56118dbaac5b23061eefedbe370293afd33c768ad985
BLAKE2b-256 checksum
How to use checksums
f17a83ec8992c4d3d695e9fcca14d59e3d0dc5b4472d508604313c3e874f479a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Security for sinricpro 0.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page