Metadata-Version: 2.4
Name: pygluelock
Version: 0.2.0
Summary: pygluelock is a sync wrapper around glue lock API
Author-email: Adnan Hossain <fadnanhossain@hotmail.com>
Maintainer-email: Adnan Hossain <fadnanhossain@hotmail.com>
License-Expression: MIT
Project-URL: bugs, https://github.com/aniiik/pygluelock/issues
Project-URL: changelog, https://github.com/aniiik/pygluelock/blob/master/changelog.md
Project-URL: homepage, https://github.com/aniiik/pygluelock
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: ruff; extra == "test"
Requires-Dist: ipdb; extra == "test"
Dynamic: license-file

# python glue lock wrapper

![PyPI version](https://img.shields.io/pypi/v/pygluelock.svg)
[![Documentation Status](https://readthedocs.org/projects/pygluelock/badge/?version=latest)](https://pygluelock.readthedocs.io/en/latest/?version=latest)


pygluelock is a sync and async wrapper around the Glue Lock API for smart locks.

Please note that due to me only having an old generation of glue lock and that lock is missing the lock status, the lock status is not added in this project.

* PyPI package: https://pypi.org/project/pygluelock/
* Free software: MIT License
* Documentation: https://pygluelock.readthedocs.io

## Features

- Connect to Glue Lock API
- Retrieve all locks associated with your account
- Get lock status, battery, firmware, and events
- Control lock (lock/unlock)
- Async API using `aiohttp`

## Usage

### Run via CLI

After installing the package (e.g. `pip install .` or from PyPI), you can use the CLI:

```sh
pygluelock --username <your_username> --password <your_password>
```

This will connect to the Glue Lock API and print all locks associated with your account.

You can also run the main function straight away in your IDE of choice.

## Credits

This package was created with [Cookiecutter](https://github.com/audreyfeldroy/cookiecutter) and the [audreyfeldroy/cookiecutter-pypackage](https://github.com/audreyfeldroy/cookiecutter-pypackage) project template.
