Metadata-Version: 2.1
Name: pyschlage
Version: 2022.12.20.post1
Summary: Python API for interacting with Schlage WiFi locks.
Home-page: https://github.com/dknowles2/pyschlage
Download-URL: https://github.com/dknowles2/pyschlage/tarball/2022.12.20-1
Author: David Knowles
Author-email: dknowles2@gmail.com
License: Apache License 2.0
Keywords: schlage,api,iot
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3
Description-Content-Type: text/markdown
License-File: LICENSE

# 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

```python
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.get_locks()

# Print the name of the first lock
print(locks[0].name)
"My lock"

# Lock the first lock.
lock[0].lock()
```
