skillfed

pyschlage

Python API for interacting with Schlage WiFi locks.

pyschlage v2026.7.0 77.2K downloads/30d#14,547 on PyPI22
Permissive license Apache-2.0 Active released

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 pyschlage

uv

uv add pyschlage

poetry

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 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

Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Topic :: Software Development :: Libraries :: Python Modules

Tags

schlage lock api pythonsmart lock control librarywifi lock automationschlage encode integrationiot lock managementhome automation lockssmart home lock api
smart-homeiotapi-client

More Python Modules packages