Watch
1
0
Fork
You've already forked query-rse-group
0
query-rse-group/query_things/common/__init__.py

35 lines
772 B
Python

from typing import (
Any,
TypeAlias,
)
from .api import make_record_resolver # noqa: TID252
from .cache import RecordCache # noqa: TID252
from .jsonl import ( # noqa: TID252
jsonl_from_record,
parse_json_objects,
)
from .linking import ( # noqa: TID252
all_records_have_links,
iter_link_pids,
record_has_link,
record_has_link_any,
)
from .records import homogenize_annotations # noqa: TID252
# standard type to use anywhere a record goes
Record: TypeAlias = dict[str, Any]
__all__ = [
'Record',
'RecordCache',
'all_records_have_links',
'homogenize_annotations',
'iter_link_pids',
'jsonl_from_record',
'make_record_resolver',
'parse_json_objects',
'record_has_link',
'record_has_link_any',
]