Skip to main content

AVIS Python client

Project description

avis-client

VUE Autonomous Visual Inspection System (AVIS)

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

  • API version: 0.5.0
  • Package version: 0.5.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

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

pip install git+https://github.com/vuengineering/public.git

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

Then import the package:

import avis_client

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 avis_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import time
import avis_client
from avis_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://avis.vu.engineering
# See configuration.py for a list of all supported configuration parameters.
configuration = avis_client.Configuration(
    host = "https://avis.vu.engineering"
)

# 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 API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'

# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'


# Enter a context with an instance of the API client
with avis_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = avis_client.ApiKeysApi(api_client)
    user_api_key_create_request = avis_client.UserAPIKeyCreateRequest() # UserAPIKeyCreateRequest |  (optional)

    try:
        api_response = api_instance.keys_create(user_api_key_create_request=user_api_key_create_request)
        print("The response of ApiKeysApi->keys_create:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ApiKeysApi->keys_create: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://avis.vu.engineering

Class Method HTTP request Description
ApiKeysApi keys_create POST /api/keys/
ApiKeysApi keys_revoke_create POST /api/keys/revoke/
ImageApi image_create POST /api/image/
ImageApi image_destroy DELETE /api/image/{id}/
ImageApi image_inspection_status_list GET /api/image/inspection_status/
ImageApi image_list GET /api/image/
ImageApi image_partial_update PATCH /api/image/{id}/
ImageApi image_quality_list GET /api/image/quality/
ImageApi image_retrieve GET /api/image/{id}/
ImageApi image_update PUT /api/image/{id}/
ImageattributeApi imageattribute_create POST /api/imageattribute/
ImageattributeApi imageattribute_destroy DELETE /api/imageattribute/{id}/
ImageattributeApi imageattribute_list GET /api/imageattribute/
ImageattributeApi imageattribute_partial_update PATCH /api/imageattribute/{id}/
ImageattributeApi imageattribute_retrieve GET /api/imageattribute/{id}/
ImageattributeApi imageattribute_update PUT /api/imageattribute/{id}/
ImageattributecategoryApi imageattributecategory_create POST /api/imageattributecategory/
ImageattributecategoryApi imageattributecategory_destroy DELETE /api/imageattributecategory/{id}/
ImageattributecategoryApi imageattributecategory_list GET /api/imageattributecategory/
ImageattributecategoryApi imageattributecategory_partial_update PATCH /api/imageattributecategory/{id}/
ImageattributecategoryApi imageattributecategory_retrieve GET /api/imageattributecategory/{id}/
ImageattributecategoryApi imageattributecategory_update PUT /api/imageattributecategory/{id}/
ImagequalitygateApi imagequalitygate_create POST /api/imagequalitygate/
ImagequalitygateApi imagequalitygate_destroy DELETE /api/imagequalitygate/{id}/
ImagequalitygateApi imagequalitygate_list GET /api/imagequalitygate/
ImagequalitygateApi imagequalitygate_partial_update PATCH /api/imagequalitygate/{id}/
ImagequalitygateApi imagequalitygate_retrieve GET /api/imagequalitygate/{id}/
ImagequalitygateApi imagequalitygate_update PUT /api/imagequalitygate/{id}/
InspectionApi inspection_create POST /api/inspection/
InspectionApi inspection_destroy DELETE /api/inspection/{id}/
InspectionApi inspection_list GET /api/inspection/
InspectionApi inspection_partial_update PATCH /api/inspection/{id}/
InspectionApi inspection_retrieve GET /api/inspection/{id}/
InspectionApi inspection_send_validation_email_retrieve GET /api/inspection/{id}/send_validation_email/
InspectionApi inspection_status_list GET /api/inspection/status/
InspectionApi inspection_update PUT /api/inspection/{id}/
InspectionApi inspection_validation_status_list GET /api/inspection/validation_status/
InspectionmetadataApi inspectionmetadata_create POST /api/inspectionmetadata/
InspectionmetadataApi inspectionmetadata_destroy DELETE /api/inspectionmetadata/{id}/
InspectionmetadataApi inspectionmetadata_list GET /api/inspectionmetadata/
InspectionmetadataApi inspectionmetadata_partial_update PATCH /api/inspectionmetadata/{id}/
InspectionmetadataApi inspectionmetadata_retrieve GET /api/inspectionmetadata/{id}/
InspectionmetadataApi inspectionmetadata_update PUT /api/inspectionmetadata/{id}/
InspectionmetadataschemaApi inspectionmetadataschema_create POST /api/inspectionmetadataschema/
InspectionmetadataschemaApi inspectionmetadataschema_destroy DELETE /api/inspectionmetadataschema/{id}/
InspectionmetadataschemaApi inspectionmetadataschema_list GET /api/inspectionmetadataschema/
InspectionmetadataschemaApi inspectionmetadataschema_partial_update PATCH /api/inspectionmetadataschema/{id}/
InspectionmetadataschemaApi inspectionmetadataschema_retrieve GET /api/inspectionmetadataschema/{id}/
InspectionmetadataschemaApi inspectionmetadataschema_update PUT /api/inspectionmetadataschema/{id}/
InspectionprocessblueprintApi inspectionprocessblueprint_create POST /api/inspectionprocessblueprint/
InspectionprocessblueprintApi inspectionprocessblueprint_destroy DELETE /api/inspectionprocessblueprint/{id}/
InspectionprocessblueprintApi inspectionprocessblueprint_list GET /api/inspectionprocessblueprint/
InspectionprocessblueprintApi inspectionprocessblueprint_partial_update PATCH /api/inspectionprocessblueprint/{id}/
InspectionprocessblueprintApi inspectionprocessblueprint_retrieve GET /api/inspectionprocessblueprint/{id}/
InspectionprocessblueprintApi inspectionprocessblueprint_update PUT /api/inspectionprocessblueprint/{id}/
InspectionresultApi inspectionresult_create POST /api/inspectionresult/
InspectionresultApi inspectionresult_destroy DELETE /api/inspectionresult/{id}/
InspectionresultApi inspectionresult_list GET /api/inspectionresult/
InspectionresultApi inspectionresult_partial_update PATCH /api/inspectionresult/{id}/
InspectionresultApi inspectionresult_retrieve GET /api/inspectionresult/{id}/
InspectionresultApi inspectionresult_update PUT /api/inspectionresult/{id}/
MembershipApi membership_create POST /api/membership/
MembershipApi membership_destroy DELETE /api/membership/{id}/
MembershipApi membership_list GET /api/membership/
MembershipApi membership_retrieve GET /api/membership/{id}/
MembershipApi membership_update PUT /api/membership/{id}/
MlApi ml_inspectionresult_create POST /api/ml/inspectionresult/
MlApi ml_inspectionresult_destroy DELETE /api/ml/inspectionresult/{id}/
MlApi ml_inspectionresult_list GET /api/ml/inspectionresult/
MlApi ml_inspectionresult_partial_update PATCH /api/ml/inspectionresult/{id}/
MlApi ml_inspectionresult_retrieve GET /api/ml/inspectionresult/{id}/
MlApi ml_inspectionresult_update PUT /api/ml/inspectionresult/{id}/
MlApi ml_model_create POST /api/ml/model/
MlApi ml_model_destroy DELETE /api/ml/model/{id}/
MlApi ml_model_inference POST /api/ml/model/{id}/inference/
MlApi ml_model_list GET /api/ml/model/
MlApi ml_model_partial_update PATCH /api/ml/model/{id}/
MlApi ml_model_retrieve GET /api/ml/model/{id}/
MlApi ml_model_update PUT /api/ml/model/{id}/
MlApi ml_modeltype_create POST /api/ml/modeltype/
MlApi ml_modeltype_destroy DELETE /api/ml/modeltype/{id}/
MlApi ml_modeltype_list GET /api/ml/modeltype/
MlApi ml_modeltype_partial_update PATCH /api/ml/modeltype/{id}/
MlApi ml_modeltype_retrieve GET /api/ml/modeltype/{id}/
MlApi ml_modeltype_update PUT /api/ml/modeltype/{id}/
ProductApi product_create POST /api/product/
ProductApi product_destroy DELETE /api/product/{id}/
ProductApi product_list GET /api/product/
ProductApi product_partial_update PATCH /api/product/{id}/
ProductApi product_retrieve GET /api/product/{id}/
ProductApi product_update PUT /api/product/{id}/
ProductCategoryApi product_category_create POST /api/product-category/
ProductCategoryApi product_category_destroy DELETE /api/product-category/{id}/
ProductCategoryApi product_category_list GET /api/product-category/
ProductCategoryApi product_category_partial_update PATCH /api/product-category/{id}/
ProductCategoryApi product_category_retrieve GET /api/product-category/{id}/
ProductCategoryApi product_category_update PUT /api/product-category/{id}/
TeamApi team_create POST /api/team/
TeamApi team_destroy DELETE /api/team/{id}/
TeamApi team_list GET /api/team/
TeamApi team_retrieve GET /api/team/{id}/
TeamApi team_update PUT /api/team/{id}/
UserApi user_email_list GET /api/user/email/
UserApi user_whoami_retrieve GET /api/user/whoami/

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

ApiKeyAuth

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

cookieAuth

  • Type: API key
  • API key parameter name: sessionid
  • Location:

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

avis_client-0.5.0.tar.gz (89.4 kB view hashes)

Uploaded Source

Built Distribution

avis_client-0.5.0-py3-none-any.whl (223.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page