Skip to content

emannotationschemas

SchemaClientLegacy(server_address, auth_header, api_version, endpoints, server_name, max_retries=None, pool_maxsize=None, pool_block=None, over_client=None)

Bases: ClientBase

server_version: Optional[Version] property

The version of the service running on the remote server. Note that this refers to the software running on the server and has nothing to do with the version of the datastack itself.

get_schemas()

Get the available schema types

Returns:

Type Description
list

List of schema types available on the Schema service.

raise_for_status(r, log_warning=True) staticmethod

Raises requests.HTTPError, if one occurred.

schema_definition(schema_type)

Get the definition of a specified schema_type

Parameters:

Name Type Description Default
schema_type str

Name of a schema_type

required

Returns:

Type Description
json

Schema definition

schema_definition_all()

Get the definition of all schema_types

Returns:

Type Description
dict

Dictionary of schema definitions. Keys are schema names, values are definitions.

schema_definition_multi(schema_types)

Get the definition of multiple schema_types

Parameters:

Name Type Description Default
schema_types list

List of schema names

required

Returns:

Type Description
dict

Dictionary of schema definitions. Keys are schema names, values are definitions.