Skip to main content

SmartHome

Project description

smarthome-meterportal

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0
  • Package version: 1.0.0
  • Generator version: 7.10.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.8+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import smarthome_meterportal

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import smarthome_meterportal

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import smarthome_meterportal
from smarthome_meterportal.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = smarthome_meterportal.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
async with smarthome_meterportal.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = smarthome_meterportal.HomeAssistantApi(api_client)
    auth_request = smarthome_meterportal.AuthRequest() # AuthRequest |  (optional)

    try:
        api_response = await api_instance.api_homeassistant_authenticate_post(auth_request=auth_request)
        print("The response of HomeAssistantApi->api_homeassistant_authenticate_post:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling HomeAssistantApi->api_homeassistant_authenticate_post: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
HomeAssistantApi api_homeassistant_authenticate_post POST /api/homeassistant/authenticate
HomeAssistantApi api_homeassistant_full_post POST /api/homeassistant/full
HomeAssistantApi api_homeassistant_meters_get GET /api/homeassistant/meters
HomeAssistantApi api_homeassistant_partial_post POST /api/homeassistant/partial
HomeyApi api_homey_authenticate_post POST /api/homey/authenticate
HomeyApi api_homey_full_post POST /api/homey/full
HomeyApi api_homey_meters_get GET /api/homey/meters
HomeyApi api_homey_partial_post POST /api/homey/partial

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

ApiKey

  • Type: API key
  • API key parameter name: X-API-KEY
  • Location: HTTP header

Author

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

smarthome_meterportal-1.0.2.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

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

smarthome_meterportal-1.0.2-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

Details for the file smarthome_meterportal-1.0.2.tar.gz.

File metadata

  • Download URL: smarthome_meterportal-1.0.2.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for smarthome_meterportal-1.0.2.tar.gz
Algorithm Hash digest
SHA256 709a02f97832ad8e312b81d72662a02f89a8935ec1f97fd3d01b195fc17ce2da
MD5 606a31992dd68a40ac9370d8be9afa22
BLAKE2b-256 04c3e4cf6ed659f4698c48a4e17155301ac271b6d95dbf55229521db49ac115a

See more details on using hashes here.

File details

Details for the file smarthome_meterportal-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for smarthome_meterportal-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71bcc24407d8460065cf4958c56d7c131bd8b705db8c2ad03c6e31b7d38af70e
MD5 20ca78a574c76766706462ba3174ff77
BLAKE2b-256 0c39d2841b56ac34430a8a9b7ede21d0a17718024621f0eef0e88ba649b33408

See more details on using hashes here.

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