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.2.tar.gz
(6.9 kB
view details)
Built Distribution
File details
Details for the file gogogate2_api-1.0.2.tar.gz
.
File metadata
- Download URL: gogogate2_api-1.0.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.6 Linux/5.0.0-1035-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 938808591506b73c1009aff9d119147956f9d0cf1f04b07d5f929527a25d7f0c |
|
MD5 | 87103b9b3c6dfd573369ca9918b8afe1 |
|
BLAKE2b-256 | db921423c74c524a3dc26b80cdb4bbc9ca4818d6b58ffe10bdac1b6c5e6e4129 |
File details
Details for the file gogogate2_api-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: gogogate2_api-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.6 Linux/5.0.0-1035-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4c5a97b616a3e2265bbfadb84b2669415209865b9c63e490653a1d7df42383e |
|
MD5 | b8f58171d811a5107b2b9c77a3de8dcc |
|
BLAKE2b-256 | f3ee6a530d590f611deb6fe3ef175f442a79921c4b4e7736cbc0e0f22d8b83ad |