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.3.12.tar.gz
(10.7 kB
view hashes)
Built Distribution
Close
Hashes for planqk-service-sdk-1.3.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b8aedeefd1d948acce726994edaf91e44639b3a8a9b4aaa4213c3296b6b5f6a |
|
MD5 | 57130d9afe92047986286d5045edb3b5 |
|
BLAKE2b-256 | f2aa0ddc50b62efd9f92a8079e7626766490e0823b067e0c182aa77658384250 |
Close
Hashes for planqk_service_sdk-1.3.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77399a4590bdc23e8aedb97693f40c5575d27dab0c7229b06e1b854012315897 |
|
MD5 | ed95429727bd5aaf215aa63eb66559d9 |
|
BLAKE2b-256 | 715fc63c86ae55dde77ea193e0982b084a6034d7d3ae4f1a4e53e9ccf255c8e3 |