Python SDK to use public API of Unison
Project description
Hyperunison Python SDK
You can use this SDK to execute UQL queries via Public API.
Installation
If you need to install this SDK, you should add the line
hyperunison-public-api-sdk===1.1.8
to the file requirements.txt.
Or you can run the command
pip install hyperunison-public-api-sdk
in CLI.
API keys
You will need to create API key to use the Public API. You can do it in Web interface of the site.
The example of using
from hyperunison_public_api import UnisonSDKApi
from hyperunison_public_api import Configuration
# Init variables
query = ''
api_key = ''
biobank_id = '1'
api = UnisonSDKApi(
Configuration(
host='',
)
)
# Execute Cohort request
response = api.execute_cohort_request(
api_key,
biobank_id,
query
)
print(response)
# Run custom workflow
api.run_custom_workflow(
api_key=api_key,
pipeline_version_id='0',
parameters=list([]),
project='',
biobanks=list([]),
cohort=''
)
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
Built Distribution
File details
Details for the file hyperunison_public_api_sdk-1.2.3.tar.gz
.
File metadata
- Download URL: hyperunison_public_api_sdk-1.2.3.tar.gz
- Upload date:
- Size: 44.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eb869c176bf1783951124df9f4597ea97b9e0272e81d30ad3699b024ab6bd00 |
|
MD5 | 6473911c017d1b67ce69954e28194591 |
|
BLAKE2b-256 | bfa3f7b85fbb091bbc2e65c87f7c5d6cb9a49061095481a074a214ee16474c01 |
File details
Details for the file hyperunison_public_api_sdk-1.2.3-py3-none-any.whl
.
File metadata
- Download URL: hyperunison_public_api_sdk-1.2.3-py3-none-any.whl
- Upload date:
- Size: 73.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6766105864fe9ac89a9947c04642b82fb28e0058270a50e4d1999558ebd33f5 |
|
MD5 | 0770b673d26816d0db147ed705a322c7 |
|
BLAKE2b-256 | 9af6bbb9ca126671ba6b5bb17e64aec4630e7126d3212f556db26af7a8e7b2f4 |