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+
requestspackagepydanticpackagerequests-mockpackage (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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14001f72a11d1d3ef059f65ba6986141d7a599a089cd9a284e8fc0202efc0b38
|
|
| MD5 |
dca58784001fcdac3d51500444582526
|
|
| BLAKE2b-256 |
78fb3c9835767c050c5099421b130224e61b0481d5514ec314a8ddd30e515854
|
Provenance
The following attestation bundles were made for goodhomepy-1.0.0.tar.gz:
Publisher:
python-publish.yml on biker91620/goodhomepy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
goodhomepy-1.0.0.tar.gz -
Subject digest:
14001f72a11d1d3ef059f65ba6986141d7a599a089cd9a284e8fc0202efc0b38 - Sigstore transparency entry: 152967013
- Sigstore integration time:
-
Permalink:
biker91620/goodhomepy@12ede532fbe436c6e35ae2514c4b765bfa4a918b -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/biker91620
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@12ede532fbe436c6e35ae2514c4b765bfa4a918b -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d175ae72ebe557721ee09df459122458afd1310dc387e87b70bc86e78d470d99
|
|
| MD5 |
533a6ce8a8fcb4a107cb68621d63f509
|
|
| BLAKE2b-256 |
7e765ee7b69deade96f4c86d26669750fe7d9562fb65240f3c17363a9034e472
|
Provenance
The following attestation bundles were made for goodhomepy-1.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on biker91620/goodhomepy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
goodhomepy-1.0.0-py3-none-any.whl -
Subject digest:
d175ae72ebe557721ee09df459122458afd1310dc387e87b70bc86e78d470d99 - Sigstore transparency entry: 152967014
- Sigstore integration time:
-
Permalink:
biker91620/goodhomepy@12ede532fbe436c6e35ae2514c4b765bfa4a918b -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/biker91620
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@12ede532fbe436c6e35ae2514c4b765bfa4a918b -
Trigger Event:
release
-
Statement type: