Skip to main content

Python API for interacting with Schlage WiFi locks.

Project description

pyschlage

Python 3 library for interacting with Schlage Encode WiFi locks.

Note that this project has no official relationship with Schlage or Allegion. Use at your own risk.

Usage

from pyschlage import Auth, Schlage

# Create a Schlage object and authenticate with your credentials.
s = Schlage(Auth("username", "password"))

# List the locks attached to your account.
locks = s.locks()

# Print the name of the first lock
print(locks[0].name)
"My lock"

# Lock the first lock.
lock[0].lock()

Installation

Pip

To install pyschlage, run this command in your terminal:

$ pip install pyschlage

Source code

Pyschlage is actively developed on Github, where the code is always available.

You can either clone the public repository:

$ git clone https://github.com/dknowles2/pyschlage

Or download the latest tarball:

$ curl -OL https://github.com/dknowles2/pyschlage/tarball/main

Once you have a copy of the source, you can embed it in your own Python package, or install it into your site-packages easily:

$ cd pyschlage
$ python -m pip install .

Documentation

API reference can be found on Read the Docs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyschlage-2025.4.0.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

pyschlage-2025.4.0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file pyschlage-2025.4.0.tar.gz.

File metadata

  • Download URL: pyschlage-2025.4.0.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for pyschlage-2025.4.0.tar.gz
Algorithm Hash digest
SHA256 08b0e178d2f3f02c70e48672b82a01aba1f58520e912756c141f1356ed33e043
MD5 ed8a468ab61653433777b16c2605ae90
BLAKE2b-256 b760bd80c0904a7b5bcec158207065ff90e5d151b359beedcbf24cf9017510a8

See more details on using hashes here.

File details

Details for the file pyschlage-2025.4.0-py3-none-any.whl.

File metadata

  • Download URL: pyschlage-2025.4.0-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for pyschlage-2025.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bee9db2b19763becd8581dc614521c121e3b9ffe9f2e32334957252bead67a58
MD5 4aaa680009740c432b7a742af7b379a9
BLAKE2b-256 43404d49fa2ba74c1511c1bc3b2f4f3ad2c188e3339afc5da5d6ee6ede4ab708

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page