Skip to main content

Good Home API Client is a Python client for interacting with the Good Home API. This client allows you to manage authentication, refresh tokens, verify tokens, and retrieve information about users, devices, and homes via the Good Home API.

Project description

Good Home API Client

Good Home API Client is a Python client for interacting with the Good Home API. This client allows you to manage authentication, refresh tokens, verify tokens, and retrieve information about users, devices, and homes via the Good Home API.

Prerequisites

  • Python 3.6+
  • requests package
  • pydantic package
  • requests-mock package (for testing)

Installation

Clone this repository and install the necessary dependencies.

git clone https://github.com/biker91620/goodhomepy.git
python setup.py install

Example

from good_home_client import GoodHomeClient

# Initialize the client
client = GoodHomeClient()

# Example of logging in
response = client.login("example@example.com", "password")
print(response)

# Update the access token
client.token = response.token

# Verify the token
verify_response = client.verify_token(client.token)
print(verify_response)

# Retrieve the user's devices
devices_response = client.get_devices("user_id")
print(devices_response)

# Retrieve user information
user_response = client.get_user("user_id")
print(user_response)

# Retrieve the user's homes
homes_response = client.get_homes("user_id")
print(homes_response)

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

goodhomepy-1.1.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

goodhomepy-1.1.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file goodhomepy-1.1.2.tar.gz.

File metadata

  • Download URL: goodhomepy-1.1.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for goodhomepy-1.1.2.tar.gz
Algorithm Hash digest
SHA256 edff893d1172d52050db20c7273a1ea0e9c1dc731a87e34c663392e13883e34e
MD5 b31636176cef331ce031a785d91f0239
BLAKE2b-256 5b33c29ba27c6f29bd9aa41d26ebab3b5100c5ea0731241620e1a117dbc90d7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for goodhomepy-1.1.2.tar.gz:

Publisher: python-publish.yml on biker91620/goodhomepy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file goodhomepy-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: goodhomepy-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for goodhomepy-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c78e3f577ec6e116fe7e7064ebb87e4be409ac326078ff67eb90576dbffc0459
MD5 d9b494e257a28fe77bfc972bd51db1c1
BLAKE2b-256 59a465a616614481e41388979667acf6d8ed6f8d1244fa5667f0610c3cd047bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for goodhomepy-1.1.2-py3-none-any.whl:

Publisher: python-publish.yml on biker91620/goodhomepy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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