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.3.tar.gz (49.0 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.3-py3-none-any.whl (415.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for hyperunison_public_api_sdk-2.3.3.tar.gz
Algorithm Hash digest
SHA256 862e592e4d2acda472ea2467c478fdf7b55e7cbc93817349edf7c5dad265e8aa
MD5 f1957ec00527ac69fa84a910353cbaf5
BLAKE2b-256 71485043084ce77e34e4bb459515ca8b6c55f4cb90810c61f3c3bc544bff9d16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hyperunison_public_api_sdk-2.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a93e59b080c0cb82f30927562ef4b68a3b643094fe27196f7e652699c8a12537
MD5 0d92eadfdc62d0c526111ecc99ef022a
BLAKE2b-256 609a40f7f4001ac2bb916d6baeaf1338f5d784d54221941c7b9e8614064bd214

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