| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Official Python SDK for SinricPro - Control your IoT devices with Alexa and Google Home.
Lighting & Switches:
Sensors:
Control Devices:
Climate Control:
Other Devices:
pip install sinricproThe SDK works on:
Enable debug logging to see detailed information:
from sinricpro import SinricProLogger, LogLevel
# Set log level
SinricProLogger.set_level(LogLevel.DEBUG)Available log levels: DEBUG, INFO, WARN, ERROR, NONE
# Clone the repository
git clone https://github.com/sinricpro/python-sdk.git
cd python-sdk
# Install development dependencies
pip install -e ".[dev]"
# Import sinricpro for development.
```python
import sys
from pathlib import Path
from typing import Any
sys.path.insert(0, str(Path(__file__).parent.parent.parent))
from sinricpro import SinricPro, SinricProAirQualitySensor, SinricProConfigpytest
black .
mypy sinricpro
# Set environment variables
export SINRICPRO_APP_KEY="your-app-key"
export SINRICPRO_APP_SECRET="your-app-secret"
# Run an example
python examples/switch/switch_example.pyFull API documentation is available at Read the Docs (Coming soon!)
"Invalid app_key format"
"Invalid app_secret: must be at least 32 characters"
"Invalid device_id format"
Copyright (c) 2019-2025 Sinric. All rights reserved.
This project is licensed under the Creative Commons Attribution-Share Alike 4.0 International License (CC BY-SA 4.0) - see the LICENSE file for details.
You are free to share and adapt this work for any purpose (including commercially), as long as you give appropriate credit and distribute your contributions under the same license.
If you are to develop agent via vibe coding the llms.txt and the llms-full.txt can be used as context to LLM. While the former one is a summarized one and the later one has the full information in case your LLM has big enough context window.
Made with ❤️ by the SinricPro Team
| Back | FazBrowse Home | New Git URL |