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-2026.5.0.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyschlage-2026.5.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyschlage-2026.5.0.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pyschlage-2026.5.0.tar.gz
Algorithm Hash digest
SHA256 5b4df72b0d81743e37e2c528f42ca47fab1fa63d2ac03dedf05ab4938d05b56d
MD5 51622303efc144213481f792f7762a6f
BLAKE2b-256 f63e8dc2bab60e0d3b0e59415bbf3855aac130101655e6c325c68d0b54df70ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyschlage-2026.5.0-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pyschlage-2026.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73f2283d71a564ceae89ca0c72a22c78df7c7802eb05e835698adb5cd75d4b98
MD5 2822fa4bd19d1f450f1e2faafed0e0f6
BLAKE2b-256 fe9dbea19d2f7a4c2928ea3d127c78488eb95ce65f154673f497a2f3606469f6

See more details on using hashes here.

Supported by

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