IncQuery Server Web API
Project description
incqueryserver-api-python-client
This package offers an easy way to connect to a running IncQuery Server instance.
Connect to a running IncQuery Server
from iqs_api import connect
No authentication
iqs = connect("https://incqueryserver.url.com")
OpenID Connect (OIDC)
token = "token"
iqs = connect(
address="https://incqueryserver.url.com",
auth_header_name="Authorization",
auth_header_value=f"Bearer {token}",
use_auth_header=True
)
Basic Authentication
iqs = connect(
address="https://incqueryserver.url.com",
username="username",
password="password"
)
Issue API calls
GET request example:
response = iqs.server_management.get_server_info()
POST request example:
from iqs_client import models
response = iqs.demo.update_model_compartment_index(
index_compartment=models.IndexCompartment(
model_compartment="model_compartment_uri",
indexes=["index1", "index2"]
)
)
IMPORTANT: It is recommended to provide parameters as keyword arguments (opposed to positional)
Other options
Configure self-signed certificate
from iqs_client import Configuration
custom_config = Configuration()
custom_config.ssl_ca_cert = "path/to/cert.cer"
iqs = connect(
address="https://incqueryserver.url.com",
configuration=custom_config
)
Disable SSL verification
from iqs_client import Configuration
custom_config = Configuration()
custom_config.verify_ssl = False
iqs = connect(
address="https://incqueryserver.url.com",
configuration=custom_config
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for incqueryserver-api-python-client-0.26.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc09d59401cc3e4f92eedc3b46a030f6bfc83da7087de13447a11b0e9a91745c |
|
MD5 | 6ae29cc57ff1c3c4c332c4c94eae6ee8 |
|
BLAKE2b-256 | e2dfc7d5eb3a955d03ce2a1f6c0993f405b91dcef01a75849601f10141896432 |
Close
Hashes for incqueryserver_api_python_client-0.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a686ab85ac718f2c7ae1d1894b109b9a19869391c37a68898025650fd391898 |
|
MD5 | 83e57cb1ff87135689761bfad0100dca |
|
BLAKE2b-256 | 2d57d622223d7640e27576992b2fc7ee00930f47104c56408a04091a67efd38f |