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.1.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.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for goodhomepy-1.1.1.tar.gz
Algorithm Hash digest
SHA256 e22701d5abcbd4a7b772b3ef50a3da48d18477096c7ed0a149d6cea73a132015
MD5 68a9fddbe2910d9292b1e2030b0a208a
BLAKE2b-256 31d0143a456b846fbf706ec6cc8190dae0946e681dfbf3499639ca6dd4eb395b

See more details on using hashes here.

Provenance

The following attestation bundles were made for goodhomepy-1.1.1.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.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for goodhomepy-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2d4928d13088847f0ceebabd825930a378fd009137966ddcf246596abb3fac9
MD5 6baf57b19c8cd09fa9bd374a5eb48b11
BLAKE2b-256 51016fafc7e450b63d2ac8be4edb082be87b4baf139993f6a8ad88426eeb3d63

See more details on using hashes here.

Provenance

The following attestation bundles were made for goodhomepy-1.1.1-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