Library for connecting to gogogate2 hubs
Project description
Python gogogate2-api
Python library for controlling gogogate2 devices
Installation
pip install gogogate2-api
Usage
For a complete example, checkout the integration test in scripts/integration_test.py
. It has a working example on how to use the API.
from gogogate2_api import GogoGate2Api
api = GogoGate2Api("10.10.0.23", "admin", "password")
# Get info about device and all doors.
api.info()
# Open/close door.
api.open_door(1)
api.close_door(1)
Building
Building, testing and lintings of the project is all done with one script. You only need a few dependencies.
Dependencies:
- python3 in your path.
- The python3
venv
module.
The build script will setup the venv, dependencies, test and lint and bundle the project.
./scripts/build.sh
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gogogate2_api-1.0.0.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for gogogate2_api-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 746fe1c39ccdc43ced02489960eca8e17d575cdee3d7771effe63c06aed33a9f |
|
MD5 | 834aca09b7421195600498d6fd07b254 |
|
BLAKE2b-256 | 18515b2bf4f631527feb09f0710a55ce5d6232481a96f458ddf7bdd011ce83ef |