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
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 = 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.0.tar.gz (23.7 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.0-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smarthome_meterportal-1.0.0.tar.gz
  • Upload date:
  • Size: 23.7 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.0.tar.gz
Algorithm Hash digest
SHA256 64739d33babb74bb374e09fb68cc972e2a563d076f7160ff2e0e3ee68dbf980b
MD5 0ebd6aa08eb9a2507c4accf6fadf16fa
BLAKE2b-256 64cec60ad07afd7dbfd8354c79840a5a7eeaa859b424cba222997734b06c34d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smarthome_meterportal-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7d857a7511f6e72afcd64a382355c797c4fc956cf30e197edcc2c0af1dc90dc
MD5 9b5412ba3af5f7161fea4ebd59a76f08
BLAKE2b-256 95baa3674246f9b824a054bdc81137e17880516952bca12060315190b3beeca4

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