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-2023.12.1.tar.gz (27.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-2023.12.1-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyschlage-2023.12.1.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for pyschlage-2023.12.1.tar.gz
Algorithm Hash digest
SHA256 0d9fc9a19b430620a5e525f629020b6975806b4c96d8feccffdf554c2011fb0d
MD5 9ee703e82cf8984ae8fd75573e6a0e27
BLAKE2b-256 a68382e512cfdc8ebcf3c8dc3745d16b11f03e0256ec053718b89fd32e3d8363

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyschlage-2023.12.1-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for pyschlage-2023.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 395a53505883cce985bfff9fb2fa22873c8b7eb8615cdc3cc0be574c66d2ad08
MD5 4c1d8a667deaf2811d9539406ac2dfb6
BLAKE2b-256 d070e3e1a96b18b4a6f7bb4691cfbad85f3f41310494c88c927259e7486e5ca2

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