Skip to main content

Client Package for using Qatalyst Optimization Suite

Project description

QCI Client

Getting started

Installation

qci-client currently supports Python 3.8-12, inclusive, as specified in the PEP-621-compliant pyproject.toml.

Install qci-client from the public PyPI server into your Python virtual environment using--

pip install qci-client

Instantiating a Client for Optimization

With Environment Variables

To access the API, set these environment variables--

  • QCI_API_URL - URL for Qatalyst API, Example: "https://api.qci-prod.com"
  • QCI_TOKEN - refresh token string for securely accessing Qatalyst API

then instantiate a QciClient as follows--

# An alias for `from qci_client.optimization.client import Client as QciClient`.
from qci_client import QciClient

client = QciClient()

Without Environment Variables

Access the API without first defining environment variables by instantiating a QciClient as follows--

# A alias for `from qci_client.optimization.client import Client as QciClient`.
from qci_client import QciClient

client = QciClient(url="https://api.qci-prod.com", api_token="<secret-token>")

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

qci_client-4.0.0.tar.gz (31.1 kB view hashes)

Uploaded Source

Built Distribution

qci_client-4.0.0-py3-none-any.whl (33.8 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