Skip to content

Client

Client

This package acts as a client for the ConceptLibrary API

Examples:

Authentication

Public API
from pyconceptlibraryclient import Client
client = Client(public=True)
Authenticated API (terminal requests credentials)
from pyconceptlibraryclient import Client
client = Client(public=False)
Authenticated API (providing credentials)
from pyconceptlibraryclient import Client
client = Client(username='my-username', password='my-password')

Providing a different URL

Using built-in domains
from pyconceptlibraryclient import Client, DOMAINS
client = Client(public=False, url=DOMAINS.HDRUK)
Using a custom URL
from pyconceptlibraryclient import Client
client = Client(public=False, url='my-custom-url')

Attributes

collections property

Entrypoint for collections through the client instance

concepts property

Entrypoint for concepts through the client instance

datasources property

Entrypoint for datasources through the client instance

ontology property

Entrypoint for ontology through the client instance

phenotypes property

Entrypoint for phenotypes through the client instance

tags property

Entrypoint for tags through the client instance

templates property

Entrypoint for templates through the client instance