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.2
- Package version: 1.0.2
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python >= 3.6
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 gewv_sides_client
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 gewv_sides_client
Please follow the installation procedure and then run the following:
import time
import gewv_sides_client
from pprint import pprint
from gewv_sides_client.api import analytics_api
from gewv_sides_client.model.inline_object import InlineObject
from gewv_sides_client.model.inline_object1 import InlineObject1
# Defining the host is optional and defaults to https://tek-ekg.iet.mw.tu-dresden.de/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = gewv_sides_client.Configuration(
host = "https://tek-ekg.iet.mw.tu-dresden.de/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = gewv_sides_client.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with gewv_sides_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = analytics_api.AnalyticsApi(api_client)
inline_object1 = InlineObject1(
fieldtest_id=1,
device_id=1,
datapoint_name="datapoint_name_example",
) # InlineObject1 |
try:
api_instance.get_datalosses(inline_object1)
except gewv_sides_client.ApiException as e:
print("Exception when calling AnalyticsApi->get_datalosses: %s\n" % e)
All URIs are relative to https://tek-ekg.iet.mw.tu-dresden.de/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
AnalyticsApi | get_datalosses | GET /analytics/datalosses | |
AnalyticsApi | get_standard_performance | GET /analytics/standard_performance | |
ApplicationsApi | create_configuration_file | POST /applications/{applicationName}/configs/{configurationFilename} | |
ApplicationsApi | get_application | GET /applications/{applicationName} | |
ApplicationsApi | get_application_configs | GET /applications/{applicationName}/configs | |
ApplicationsApi | get_application_variables | GET /applications/{applicationName}/variables | |
ApplicationsApi | get_applications | GET /applications | |
ApplicationsApi | get_configuration_file | GET /applications/{applicationName}/configs/{configurationFilename} | |
ApplicationsApi | trigger_application_action | POST /applications/{applicationName}/actions | |
ApplicationsApi | update_application_variable | POST /applications/{applicationName}/variables | |
ApplicationsApi | update_configuration_file | PUT /applications/{applicationName}/configs/{configurationFilename} | |
AuthApi | login | GET /auth/gewv/login | |
AuthApi | logout | GET /auth/gewv/logout | |
BoxesApi | create_box | POST /boxes | |
BoxesApi | create_log | POST /boxes/{boxId}/measur_services/{measurServiceId}/log | |
BoxesApi | create_measur_service | POST /boxes/{boxId}/measur_services | |
BoxesApi | delete_application_variable | DELETE /applications/{applicationName}/variables | |
BoxesApi | delete_box | DELETE /boxes/{boxId} | |
BoxesApi | delete_box_variable | DELETE /boxes/{boxId}/variables | |
BoxesApi | delete_measur_service | DELETE /boxes/{boxId}/measur_services/{measurServiceId} | |
BoxesApi | get_box | GET /boxes/{boxId} | |
BoxesApi | get_box_config | GET /boxes/{boxId}/config | |
BoxesApi | get_box_device | GET /boxes/{boxId}/device | |
BoxesApi | get_box_legacy | GET /boxes_legacy/{boxId} | |
BoxesApi | get_box_variables | GET /boxes/{boxId}/variables | |
BoxesApi | get_boxes | GET /boxes | |
BoxesApi | get_boxes_legacy | GET /boxes_legacy | |
BoxesApi | get_boxes_of_datapoint | GET /buildings/{buildingId}/devices/{deviceId}/boxes | |
BoxesApi | get_logs | GET /boxes/{boxId}/measur_services/{measurServiceId}/log | |
BoxesApi | get_measur_service | GET /boxes/{boxId}/measur_services/{measurServiceId} | |
BoxesApi | get_measur_services | GET /boxes/{boxId}/measur_services | |
BoxesApi | update_box | PATCH /boxes/{boxId} | |
BoxesApi | update_box_variable | POST /boxes/{boxId}/variables | |
BoxesApi | update_measur_service | PATCH /boxes/{boxId}/measur_services/{measurServiceId} | |
BuildingsApi | create_building | POST /fieldtests/{fieldtestId}/buildings | |
BuildingsApi | get_buildings | GET /fieldtests/{fieldtestId}/buildings | |
ConfigurationsApi | create_configuration_file | POST /applications/{applicationName}/configs/{configurationFilename} | |
ConfigurationsApi | get_configuration_file | GET /applications/{applicationName}/configs/{configurationFilename} | |
ConfigurationsApi | update_configuration_file | PUT /applications/{applicationName}/configs/{configurationFilename} | |
ContactsApi | create_contact | POST /fieldtests/{fieldtestId}/contacts | |
ContactsApi | delete_contact | DELETE /fieldtests/{fieldtestId}/contacts/{contactId} | |
ContactsApi | get_contacts | GET /fieldtests/{fieldtestId}/contacts | |
ContactsApi | update_contact | PATCH /fieldtests/{fieldtestId}/contacts/{contactId} | |
DevicesApi | create_device | POST /buildings/{buildingId}/devices | |
DevicesApi | delete_device | DELETE /buildings/{buildingId}/devices/{deviceId} | |
DevicesApi | get_boxes_of_datapoint | GET /buildings/{buildingId}/devices/{deviceId}/boxes | |
DevicesApi | get_datapoint_names | GET /buildings/{buildingId}/devices/{deviceId}/getDatapointNames | |
DevicesApi | get_device | GET /buildings/{buildingId}/devices/{deviceId} | |
DevicesApi | get_devices | GET /buildings/{buildingId}/devices | |
DevicesApi | update_device | PATCH /buildings/{buildingId}/devices/{deviceId} | |
FieldtestApi | create_fieldtest | POST /fieldtests | |
FieldtestApi | get_fieldtest | GET /fieldtests/{fieldtestId} | |
FieldtestApi | update_fieldtest | PATCH /fieldtests/{fieldtestId} | |
FieldtestsApi | get_fieltests | GET /fieldtests | |
MetersApi | create_reading | POST /meters/{meterId}/readings | |
MetersApi | delete_reading | DELETE /meters/{meterId}/readings/{readingId} | |
MetersApi | get_readings | GET /meters/{meterId}/readings | |
MetersApi | upsert_reading | POST /meters/{meterId}/readings/{readingId} | |
UsersApi | get_user | GET /user |
- ArrayOfBoxes
- ArrayOfBuildings
- ArrayOfContacts
- ArrayOfDevices
- ArrayOfFieldtests
- ArrayOfLogs
- ArrayOfMeasurServices
- ArrayOfReadings
- Box
- BoxAllOf
- BoxPrototype
- Building
- BuildingAllOf
- BuildingPrototype
- Contact
- ContactAllOf
- ContactPrototype
- Device
- EnergyType
- Fieldtest
- FieldtestAllOf
- FieldtestPrototype
- ID
- InlineObject
- InlineObject1
- InlineObject2
- InlineObject3
- InlineObject4
- InlineObject5
- InlineObject6
- Log
- LogAllOf
- LogLevel
- LogPrototype
- MeasurService
- MeasurServiceAllOf
- MeasurServicePrototype
- MeasurServicePrototypeAllOf
- MeasurServiceUpdate
- Reading
- ServiceState
- ServiceType
- User
- Type: HTTP basic authentication
If the OpenAPI document is large, imports in gewv_sides_client.apis and gewv_sides_client.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
Solution 1: Use specific imports for apis and models like:
from gewv_sides_client.api.default_api import DefaultApi
from gewv_sides_client.model.pet import Pet
Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:
import sys
sys.setrecursionlimit(1500)
import gewv_sides_client
from gewv_sides_client.apis import *
from gewv_sides_client.models import *