Skip to main content

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)

Source distribution for pysesame2 1.0.2
File Size Uploaded
pysesame2-1.0.2.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysesame2 1.0.2
File Interpreter ABI Platform
pysesame2-1.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page