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.11.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for planqk-service-sdk-1.3.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f9dd9ed9d9821adc78cf0ee6f874cc77f8d90a365da1ce3ab45ce4039a52f05 |
|
MD5 | d296fab9241ad1e0e9e575dbd760e313 |
|
BLAKE2b-256 | cf225598355197ce81ddad810e3e3b8c284353eb2ebc507b07525cb071b7c10a |
Close
Hashes for planqk_service_sdk-1.3.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a75ff19f07b0ebc5f37a0da0454e98855ebe5a05661d3d391979149dd95a85fd |
|
MD5 | b59d0a5d3e2cf7e93aa8f43b331b3a48 |
|
BLAKE2b-256 | fd188ba74fd34c2b1cb752fe0880d2333c4eadcc338d1bd442922fd78013cdc2 |