pysesame2
Python API for Sesame Smartlock made by CANDY HOUSE, Inc.
API KEY
You have to generate apikey using candyhouse dashboard: https://my.candyhouse.co/
Installation
Install from pypi
# pip install pysesame2
Install from source
# python setup.py install
Example
python
from pysesame2 import get_sesames
sesames = get_sesames(YOUR_APIKEY)
sesame = sesames[0]
print(sesame)
print(sesame.get_status())
sesame.lock()
from uuid import UUID
from time import sleep
from pyseame2 import Sesame
device_id = UUID('YOUR DEVICE UUID')
sesame = Sesame(device_id, YOUR_APIKEY)
print(sesame.get_status())
task = sesame.async_lock()
while task.pooling() is False:
print('Processing...')
sleep(1)
print('Result: %s' % task.is_successful)
Command Line Interface
# sesame2 --apikey YOUR_APIKEY list
Device ID Serial Nickame
======================================================================
00000000-0000-0000-0000-000000000001 000000000001 MY-SESAME-LOCK-1
00000000-0000-0000-0000-000000000002 000000000002 MY-SESAME-LOCK-2
# sesame2 --apikey YOUR_APIKEY lock 00000000-0000-0000-0000-000000000001
# sesame2 --apikey YOUR_APIKEY status 00000000-0000-0000-0000-000000000001
Locked: True
Battery: 100
Responsive: True
Use sesame2 --help get more options
Metadata
Release files for pysesame2 1.0.2
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 |
|---|---|---|---|---|
| pysesame2-1.0.2.tar.gz | 3.9 kB | Without provenance | Details for pysesame2-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysesame2-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for pysesame2-1.0.2-py3-none-any.whl |
Total release size: 8.6 kB
Release files / pysesame2-1.0.2.tar.gz
| Download URL | pysesame2-1.0.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7632af9a661e3dda5c32df5b2a44322ac2804f98615cc3c9c02d0491f63cbd65
|
|
BLAKE2b-256 checksum How to use checksums |
a8fb35e2973a441560ba7e7c6e4f265b64df8c9df4d3a61c1c3624d9a46f7265
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|
Release files / pysesame2-1.0.2-py3-none-any.whl
| Download URL | pysesame2-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f03ec7c59863fc566415e3b53ff8d559b4d2d97fe38bcd72eec34fe64be443a7
|
|
BLAKE2b-256 checksum How to use checksums |
205fa0f04fe50e8a4abe75148b641459dfa8ad4aadb00d083b1ccd82af795b89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|
Security for pysesame2 1.0.2
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.