graphkb.util¶
VERBOSE_ERROR_CODE¶
VERBOSE_ERROR_CODE = (logging.INFO + logging.DEBUG) // 2
logger¶
logger = logging.getLogger('graphkb')
LOG_LEVELS¶
LOG_LEVELS = {
'info': logging.INFO,
'debug': logging.DEBUG,
'warn': logging.WARN,
'error': logging.ERROR,
'verbose': VERBOSE_ERROR_CODE,
class IterableNamespace¶
inherits argparse.Namespace
convert_to_rid_list()¶
Given a list of records, return their record IDs
def convert_to_rid_list(records: Iterable[Record]) -> List[str]:
Args
- records (Iterable[Record])
Returns
List[str]
looks_like_rid()¶
Check if an input string looks like a GraphKB ID
def looks_like_rid(rid: str) -> bool:
Args
- rid (
str
)
Returns
bool
convert_aa_3to1()¶
Convert an Input string from 3 letter AA notation to 1 letter AA notation
def convert_aa_3to1(three_letter_notation: str) -> str:
Args
- three_letter_notation (
str
)
Returns
str