Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyperunison_public_api_sdk-1.2.3.tar.gz (44.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file hyperunison_public_api_sdk-1.2.3.tar.gz.

File metadata

File hashes

Hashes for hyperunison_public_api_sdk-1.2.3.tar.gz
Algorithm Hash digest
SHA256 5eb869c176bf1783951124df9f4597ea97b9e0272e81d30ad3699b024ab6bd00
MD5 6473911c017d1b67ce69954e28194591
BLAKE2b-256 bfa3f7b85fbb091bbc2e65c87f7c5d6cb9a49061095481a074a214ee16474c01

See more details on using hashes here.

File details

Details for the file hyperunison_public_api_sdk-1.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for hyperunison_public_api_sdk-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c6766105864fe9ac89a9947c04642b82fb28e0058270a50e4d1999558ebd33f5
MD5 0770b673d26816d0db147ed705a322c7
BLAKE2b-256 9af6bbb9ca126671ba6b5bb17e64aec4630e7126d3212f556db26af7a8e7b2f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page