Control locks, lights and other internet of things devices with Seam's simple API. Check out the documentation or some examples
pip install seamapifrom seamapi import Seam
# export SEAM_API_KEY=***
seam = Seam()
some_lock = seam.locks.list()[0]
# TODO this syntax soon
#some_lock = seam.locks.get(
# name="Front Door",
# location="123 Amy Lane"
#)
seam.locks.lock_door(some_lock)This project uses poetry
- To setup the project and install dependencies run
poetry install - To run tests, run
poetry run pytest -s - To build the project for publishing, run
poetry build
Commits to main following Conventional Commits will automatically be published to PyPI.
Our tests use a seam sandbox environment given by the environment
variables SEAM_SANDBOX_API_KEY. If you want to run the tests, you should
first create a sandbox workspace on your dashboard
then create a sandbox workspace.
NOTE: For installation on m1 mac, you may need to export the following lines prior to
poetry install...
export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include"
export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib -L${HOME}/.pyenv/versions/3.8.10/lib"