pyschlage
Python API for interacting with Schlage WiFi locks.
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 on this page — 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
pyschlage on PyPI
pip
pip install pyschlageuv
uv add pyschlagepoetry
poetry add pyschlageInstalling 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 the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pycognito, requests |
| Maintenance | actively maintained — 27 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 77,211/month — #14,547 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyschlage-2026.7.0-py3-none-any.whl
Keywords: schlage, api, iot
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
yalexs-bleProvides Bluetooth control of Yale and August…
copyleft · top 15,000 on PyPI
PySwitchbotAsync Python library to discover and control…
permissive · top 15,000 on PyPI
yalexsAsync Python client library for Yale Access…
permissive · top 15,000 on PyPI
seamOfficial Python SDK for the Seam API that…
permissive · top 15,000 on PyPI
redlock-pyImplements Redis-based distributed locks using…
permissive · top 15,000 on PyPI
python-ecobee-apiA Python library for communicating with Ecobee3…
permissive · top 15,000 on PyPI
jaraco.abodeA Python library that interfaces with the Abode…
permissive · top 15,000 on PyPI
fifolockFifolock provides a low-level building block…
permissive · top 15,000 on PyPI
readerwriterlockProvides reader-writer lock implementations for…
permissive · top 5,000 on PyPI
python-dynamodb-lockProvides distributed locking on top of DynamoDB…
permissive · top 15,000 on PyPI