🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

incqueryserver-api-python-client

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

incqueryserver-api-python-client

IncQuery Server Web API

0.27.0
79

Supply Chain Security

100

Vulnerability

98

Quality

100

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Network access

Supply chain risk

This module accesses the network.

Found 1 instance in 1 package

Maintainers
3

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
)

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts