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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyschlage-2024.8.0.tar.gz
.
File metadata
- Download URL: pyschlage-2024.8.0.tar.gz
- Upload date:
- Size: 30.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f82683969d6e1c8ee674039c7be905de0d0bd235293d2811251e91f3684f6418 |
|
MD5 | 9d53303598060862beed0d7f6ae2d5e5 |
|
BLAKE2b-256 | c343e065403719c73a594a649ec92f76a205f3b8d09acf1a52c86c88fd040498 |
File details
Details for the file pyschlage-2024.8.0-py3-none-any.whl
.
File metadata
- Download URL: pyschlage-2024.8.0-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b974980f0feca962f01c6606555cbf9812e3ff28e3b48798c0c59ce7cd526f2 |
|
MD5 | 997ef5c4b6d7857b4d923552faabea17 |
|
BLAKE2b-256 | 6505f4bd3540bf29f85ea097649f40c959cf096509c95597013b47cf26b4b159 |