cathpy.core.tests

from cathpy.core.tests import is_valid_domain_id

is_valid_domain_id('1cukA01')
# True

is_valid_domain_id('foo')
# False

Simple validation checks

cathpy.core.tests.is_valid_domain_id(id_str: str) → bool

Returns whether the given input is a valid CATH domain identifier.