pykevoplus3
==========
This is a Python3 fork of the original module for controlling Kwikset Kevo locks written by CSeelye.
Per Cseelye:
Kwikset does not provide an official API for their Kevo locks; I reverse
engineered this module from the mykevo.com web app.
To use this module you will need to have a `Kevo Plus`_ installed and a
registered account on `mykevo.com`_. You will need your mykevo.com
credentials to use this module.
This module is published to `pypi`_ so you can install it simply via ``pip install pykevoplus``
Usage
=====
The ``Kevo.GetLocks()`` function will attempt to scrape the mykevo.com web
site to find your locks; as of this writing it can find all of your
locks, but scraping the HTML might break at any time if Kwikset changes
the website.
.. code:: python
from pykevoplus import Kevo
locks = Kevo.GetLocks("username@email.com", "password123")
for lock in locks:
print(repr(lock))
Output::
KevoLock(name=Front Door, id=cca7cd1d-c1d5-43ce-a087-c73b974b3529, state=Locked)
KevoLock(name=Back Door, id=c60130cd-8139-4688-8ba3-199276a65ad6, state=Locked)
A better way is to explicitly instantiate a ``KevoLock`` object using the
UUID of the lock. You can get the lock IDs manually by logging into
mykevo.com, click Details for the lock, click Settings, the lock ID is
on the right.
.. code:: python
from pykevoplus import KevoLock
lock = KevoLock.FromLockID("cca7cd1d-c1d5-43ce-a087-c73b974b3529", "username@email.com", "password123")
Locking and Unlocking
'''''''''''''''''''''
.. code:: python
from pykevoplus import KevoLock
lock = KevoLock.FromLockID(lock_id, username, password)
lock.Unlock()
print(lock.GetBoltState())
lock.Lock()
print(lock.GetBoltState())
Output::
Unlocked
Locked
Multiple operations in the same session
'''''''''''''''''''''''''''''''''''''''
The ``KevoLockSession`` context manager allows you to perform multiple
operations on a lock with a single auth session
.. code:: python
from pykevoplus import KevoLock, KevoLockSession
lock = KevoLock.FromLockID(lock_id, username, password)
with KevoLockSession(lock):
lock.Unlock()
lock.Lock()
Known Issues
============
* Error handling is extremely basic and needs much more work. Communication errors as well as lock bolt errors need to be addressed
* Alpha support for Python3
.. _Kevo Plus: http://www.kwikset.com/kevo/plus
.. _mykevo.com: mykevo.com
.. _pypi: https://pypi.python.org/pypi/pykevoplus
Metadata
Release files for pykevocontrol 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pykevocontrol-2.0.0.tar.gz | 4.8 kB | Without provenance | Details for pykevocontrol-2.0.0.tar.gz |
Release files / pykevocontrol-2.0.0.tar.gz
| Download URL | pykevocontrol-2.0.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d47be38cee04dba9a958723a97417ac321c66c5421597e4b13592610516c7d2
|
|
BLAKE2b-256 checksum How to use checksums |
af01135a2d894d843079a88c1da8b05296aa24a2b6b9a76e496d49b25ef0f1f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pykevocontrol 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.