Skip to main content

Library for connecting to gogogate2 hubs

Project description

Python gogogate2-api Build status codecov PyPI

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


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.4.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

gogogate2_api-1.0.4-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file gogogate2_api-1.0.4.tar.gz.

File metadata

  • Download URL: gogogate2_api-1.0.4.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.7.7 Linux/5.3.0-1031-azure

File hashes

Hashes for gogogate2_api-1.0.4.tar.gz
Algorithm Hash digest
SHA256 c8144d4f409ccfa95f64060427806789bcc852e7a01bc8f182a99b2490d9aa2c
MD5 9d46873cc3252fb19329055ffc3239f9
BLAKE2b-256 f17df6da1aab7aa4a2db85bff4ab0230417c54f8b33e39838e80ee4d858acaab

See more details on using hashes here.

File details

Details for the file gogogate2_api-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: gogogate2_api-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.7.7 Linux/5.3.0-1031-azure

File hashes

Hashes for gogogate2_api-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 31ab38c820f10cb95639ef3ff2a58b3504d29c2894a3d763e04cc3081c4fde8f
MD5 257714723e1a494fd2a7010a80664819
BLAKE2b-256 eab240191e26d4a43a4e4503d7927c8e489e3b50ab4f76202e6070b630ce5716

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page