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

Uploaded Python 3

File details

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

File metadata

  • Download URL: goodhomepy-1.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 27deab5af714a98daff67a6777d097c3d2d7ba2e9252fb930333c52f0e858fd8
MD5 8d8e57fe4de4ae7a97f5659c50af7006
BLAKE2b-256 d285c88a3976b2187156aa52eafd04ac77cfdeee303b907049b470c7e2e6345d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: goodhomepy-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 028d55201aeb5e570ebac07ed234f6f060ff95ff2f6f63302f29732c985d7a62
MD5 00d5383655c7f0fd12afe05bdd507ca8
BLAKE2b-256 bde0a0e2ef14810aa3e6af9486e5c270d3207fc418dc050ef5c1386c078178c7

See more details on using hashes here.

Provenance

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