galahad.client

Module Contents

Classes

GalahadClient

Functions

check_naming_is_ok(given_status: int, **kwargs)

check_response(response: requests.Response)

create_error_message(**kwargs) → str

Attributes

logger

galahad.client.logger
exception galahad.client.HTTPError(response: requests.Response)[source]

Bases: Exception

Common base class for all non-exit exceptions.

class galahad.client.GalahadClient(endpoint_url: str)[source]
contains_dataset(self, dataset_id: str) bool[source]
create_dataset(self, dataset_id: str)[source]
create_document_in_dataset(self, dataset_id: str, document_id: str, document: galahad.server.dataclasses.Document, auto_create_dataset=False)[source]
dataset_contains_document(self, dataset_id: str, document_id: str) bool[source]
delete_all_datasets(self)[source]
delete_all_documents(self)[source]
delete_all_documents_in_dataset(self, dataset_id: str)[source]
delete_dataset(self, dataset_id: str)[source]
delete_datasets(self, dataset_ids: List[str])[source]
delete_document_in_dataset(self, dataset_id: str, document_id: str)[source]
get_classifier_info(self, classifier_id: str) galahad.server.dataclasses.ClassifierInfo[source]
is_connected(self) bool[source]
list_all_classifiers(self) List[galahad.server.dataclasses.ClassifierInfo][source]
list_datasets(self) List[str][source]
list_documents_in_dataset(self, dataset_id) Dict[str, int][source]
predict_on_document(self, classifier_id: str, model_id: str, document: galahad.server.dataclasses.Document) galahad.server.dataclasses.Document[source]
start_session(self) requests.Session[source]
train_on_dataset(self, classifier_id: str, model_id: str, dataset_id: str) bool[source]
galahad.client.check_naming_is_ok(given_status: int, **kwargs)[source]
galahad.client.check_response(response: requests.Response)[source]
galahad.client.create_error_message(**kwargs) str[source]