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-2.3.4.tar.gz (48.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hyperunison_public_api_sdk-2.3.4-py3-none-any.whl (414.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for hyperunison_public_api_sdk-2.3.4.tar.gz
Algorithm Hash digest
SHA256 5b3e2eca964ad3739fc2495c198a3fdd5b193ad1ddd7cbe40fdd0a99552260e0
MD5 17a333caa72aab9cd26f83c379600dfd
BLAKE2b-256 56ef5fea385728d343cf5272cb9991c7ccd66f186da4a5e018bbb37d62d976bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hyperunison_public_api_sdk-2.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 23a90ded72a8db62abeaa2103ccc8c1628e7c87ea098a9ac28322f7171e66713
MD5 ccc9ff33b7ae0947878c33649348ba68
BLAKE2b-256 0dcd03607b36236ab90e69300c3b156cbcd3a13f646bcc9ced855d7a2fa235ab

See more details on using hashes here.

Supported by

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