MSK-MIND REST API
This Python package is automatically generated by the OpenAPI Generator project:
- API version: v0.0.1
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
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 openapi_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 openapi_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Defining host is optional and default to http://localhost:8080
configuration.host = "http://localhost:8080"
# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.IntrospectApi(api_client)
db = 'db_example' # str |
table = 'table_example' # str |
try:
api_response = api_instance.get_columns(db, table)
pprint(api_response)
except ApiException as e:
print("Exception when calling IntrospectApi->get_columns: %s\n" % e)
All URIs are relative to http://localhost:8080
Class | Method | HTTP request | Description |
---|---|---|---|
IntrospectApi | get_columns | POST /list-columns | |
IntrospectApi | get_databases | POST /list-databases | |
IntrospectApi | get_tables | POST /list-tables | |
QueryApi | download | POST /download | |
QueryApi | query | POST /query |
All endpoints do not require authorization.