Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

seamapi/python-legacy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seam for Python

Control locks, lights and other internet of things devices with Seam's simple API. Check out the documentation or some examples

Setup

pip install seamapi

Usage

from 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)

Development

This project uses poetry

  • To run tests, run poetry run pytest
  • To build the project for publishing, run poetry build
  • To publish the project run poetry build

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages