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.0.0.tar.gz (2.9 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.0.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for goodhomepy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 14001f72a11d1d3ef059f65ba6986141d7a599a089cd9a284e8fc0202efc0b38
MD5 dca58784001fcdac3d51500444582526
BLAKE2b-256 78fb3c9835767c050c5099421b130224e61b0481d5514ec314a8ddd30e515854

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: goodhomepy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d175ae72ebe557721ee09df459122458afd1310dc387e87b70bc86e78d470d99
MD5 533a6ce8a8fcb4a107cb68621d63f509
BLAKE2b-256 7e765ee7b69deade96f4c86d26669750fe7d9562fb65240f3c17363a9034e472

See more details on using hashes here.

Provenance

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