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.7.0.tar.gz (83.3 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.7.0-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyschlage-2026.7.0.tar.gz
Algorithm Hash digest
SHA256 811fba7d36980c0e286476dbdc9b4494de787da842286813809b02116ed29bb4
MD5 aa885c6aa886baee63c372061f5a2048
BLAKE2b-256 276a75e55b170555cc068661925f25b6fafbaaac61d4e66949af7b95fa715684

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyschlage-2026.7.0-py3-none-any.whl
  • Upload date:
  • Size: 22.4 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 038f336d1a3aff283a4a2d0161935816ea63c2ab792e3177530181cd9bc878fe
MD5 d0665219e7a7aa339ee228e846727ed2
BLAKE2b-256 fc787595079a5787dcb24dea0a4c7da1fd2bb9ff1fbd006ecf7ad7d4860550d9

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