Python SDK to execute PlanQK Managed Services.
Project description
PlanQK Service SDK
Installation
The package is published on PyPI and can be installed via pip
:
pip install --upgrade planqk-service-sdk
Usage
from planqk.service.client import PlanqkServiceClient
consumer_key = "..."
consumer_secret = "..."
service_endpoint = "..."
client = PlanqkServiceClient(service_endpoint, consumer_key, consumer_secret)
# prepare your input data and parameters
data = {"input": {"a": 1, "b": 2}}
params = {"param1": "value1", "param2": "value2"}
# start the execution
job = client.start_execution(data=data, params=params)
# wait for the result
result = client.get_result(job.id)
Development
To create a new Conda environment, run:
conda env create -f environment.yml
Then, to activate the environment:
conda activate planqk-service-sdk
To install the package in development mode, run:
pip install -e .
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
planqk_service_sdk-1.5.1.tar.gz
(11.6 kB
view hashes)
Built Distribution
Close
Hashes for planqk_service_sdk-1.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f4bbf8960f81e202d5680a2172dbee4d39a56867189e3f7c5f18d8e9deaa653 |
|
MD5 | 94ad38af55d4607f129cd0b6a82447c0 |
|
BLAKE2b-256 | f748fa304d426e4c9b6f7344cc42d3d85bb651136c009aeb3f5c60c762a91821 |