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: Collections property

Entrypoint for collections through the client instance

concepts: Concepts property

Entrypoint for concepts through the client instance

datasources: Datasources property

Entrypoint for datasources through the client instance

phenotypes: Phenotypes property

Entrypoint for phenotypes through the client instance

tags: Tags property

Entrypoint for tags through the client instance

templates: Templates property

Entrypoint for templates through the client instance