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.10.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for planqk-service-sdk-1.3.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66ce5f32bcf71729f40f6e44cdd75189fca6c0d6d6d78ac19818bc0a79cc1939 |
|
MD5 | 427f17e1716cbb2ef7a95338d91ee367 |
|
BLAKE2b-256 | 1be7379e96ec7f1b674148f4085f2da3f5a96c63c3e7442e7978db192243dc9a |
Close
Hashes for planqk_service_sdk-1.3.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a74ca32e8dcaff3215c609ecba9c953cd13e889a3fed033dd789d7c34e127f2b |
|
MD5 | c1fe6bac9e507667f8b7ad9a0631cba1 |
|
BLAKE2b-256 | f3830d28a7be1e143122e8e2611371fde240ab54275007d639d2ec32c32a47b7 |