adsfolio.cv.query

ADS query + classification helpers for adsfolio cv.

adsfolio.cv.query.apply_author_format_overrides(docs, client, cfg)[source]

Attach author-text overrides for ads_custom: formats.

Parameters:
Return type:

list[dict[str, Any]]

adsfolio.cv.query.classify_publications(docs, first_author_prefix)[source]

Split docs into first-authored and co-authored groups.

Parameters:
Return type:

tuple[list[dict[str, Any]], list[dict[str, Any]]]

adsfolio.cv.query.fetch_publications(client, cfg)[source]

Query ADS and return publication docs sorted by date descending.

Parameters:
Return type:

list[dict[str, Any]]

adsfolio.cv.query.get_first_item(doc, field)[source]

Return first item when a field is list-like, else return the field value.

Parameters:
Return type:

Any