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.2.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.2-py3-none-any.whl (414.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for hyperunison_public_api_sdk-2.3.2.tar.gz
Algorithm Hash digest
SHA256 1535fceeeb77a0c940e1327b21b6818e5cc4a40d8fac29a5f8d671fc9e20f759
MD5 d0ab6a2e69f18c536fde164fd9d797d0
BLAKE2b-256 fd95afcf38bf22c824749b2f39ab875fbc294d4af1347937d4027554439f6558

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hyperunison_public_api_sdk-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 61815c14878c8114521296ceb20e7666f59cb297bc1a94016a4a65ca23f13391
MD5 6a7f6cc6e86beacaf7acddf9e735c9ec
BLAKE2b-256 fb40d14070df9b19084b3dd94faf7b605a22d73dd92dd171d9e2cffa0598e9da

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