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

Uploaded Source

Built Distribution

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

pyschlage-2025.9.0-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyschlage-2025.9.0.tar.gz
Algorithm Hash digest
SHA256 4fc03106e1bca43e7c4e3601938870e1646c508db529fb2714a68c171cb3331f
MD5 a454b47ee887080645c0e95d400aaf80
BLAKE2b-256 1909837c16ced39dedc888047e40206319ae2aeb14eff3c94a0a4fb9f346d3a9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyschlage-2025.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32b71b415d0a73d819598e4fc2d429ffad7e50aa0c8d25353af93340758a0e67
MD5 dfcc70484e8344a66b1bbb16dbd2aa71
BLAKE2b-256 f990f0a4e9618a11da6e8f2f854fd6984d18bf1e4cfde8edd132f6be4fe4c498

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