--- id: pyschlage version: "2026.7.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # pyschlage — Python API for interacting with Schlage WiFi locks. License: permissive · Maintenance: active · Downloads: 77.2K/mo ## What it is and what it does pyschlage wraps the Schlage Encode WiFi lock API to let you authenticate and manage locks programmatically from Python. It depends on pycognito for Cognito authentication and requests for HTTP calls. The library is actively maintained, supports Python 3.11 and 3.12, and has no known vulnerabilities. Typical use is to create an authenticated Schlage session, fetch your account's locks, and then call lock or unlock operations on individual devices. The project is not officially affiliated with Schlage or Allegion and carries the standard caveat that third-party API integrations may break if the vendor changes their endpoints or authentication scheme. Use it for: - Build a home automation routine that locks all doors at bedtime by querying and controlling multiple Schlage locks. - Create a monitoring dashboard that displays the lock status of all Schlage devices on your account. - Integrate Schlage lock control into a larger smart home system or voice assistant workflow. - Audit lock activity by polling lock status at regular intervals and logging state changes. - Implement conditional access logic that locks or unlocks based on presence detection or time-of-day rules. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. pyschlage is a Python library for authenticating with and controlling Schlage Encode WiFi locks through their API, allowing you to lock, unlock, and query the status of connected locks. Yes, if you own Schlage Encode WiFi locks and need programmatic control. The library is actively maintained, has low install friction, carries a permissive license, and has no known vulnerabilities. The main caveat is that it is an unofficial third-party integration with no guarantee of API stability. ## Install pip install pyschlage uv add pyschlage poetry add pyschlage ## Installing pyschlage Before you install: Low friction: pure Python wheel with only two runtime dependencies (pycognito and requests). Actively maintained with a recent release 27 days ago and ongoing repository activity. License in practice: Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and state significant changes. Quickstart: pip install pyschlage from pyschlage import Auth, Schlage s = Schlage(Auth("username", "password")) locks = s.locks() print(locks[0].name) locks[0].lock() Requires Python 3.11 or later; you must have valid Schlage account credentials. Verify before relying: - Whether the library supports all Schlage Encode WiFi lock models or only a subset. - Rate limiting or throttling behavior when making repeated API calls. - Whether offline fallback or local control is supported. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 77.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags schlage lock api python, smart lock control library, wifi lock automation, schlage encode integration, iot lock management, home automation locks, smart home lock api, smart-home, iot, api-client [View on SkillFed](https://skillfed.io/packages/pyschlage) · [View on PyPI](https://pypi.org/project/pyschlage/)