Metadata-Version: 2.1
Name: pyschlage
Version: 2023.3.1
Summary: Python API for interacting with Schlage WiFi locks.
Author-email: David Knowles <dknowles2@gmail.com>
License: Apache License 2.0
Project-URL: Homepage, https://github.com/dknowles2/pyschlage
Project-URL: Source Code, https://github.com/dknowles2/pyschlage
Project-URL: Bug Reports, https://github.com/dknowles2/pyschlage/issues
Project-URL: Documentation, https://pyschlage.readthedocs.io
Keywords: schlage,api,iot
Platform: any
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
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.locks()

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

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

## Documentation

API reference can be found on [Read the Docs](https://pyschlage.readthedocs.io)
