Python SDK to execute PlanQK Managed Services.
Project description
PlanQK Service SDK
Installation
The package is released 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.1.0.tar.gz
(10.7 kB
view hashes)
Built Distribution
Close
Hashes for planqk_service_sdk-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de706c881c1f8b173326eeb2b80f8d83c4077e69bc2569541af2cda7bb11a60 |
|
MD5 | 108e6de00434326d773e3345a7f5cb1d |
|
BLAKE2b-256 | 287c81f59ed0f52f4c073d46fb07bfbbbfe50b3f57d8b9d3aececa3f9d1e612b |