adsfolio.pdf.prefetch
Publication prefetch helpers to reduce first-run ADS query volume.
- class adsfolio.pdf.prefetch.PublicationIndex(documents, by_doi, by_filename_key)[source]
Bases:
objectIn-memory lookup index built from prefetched ADS docs.
- Parameters:
- class adsfolio.pdf.prefetch.PublicationProfile(orcid='', query_names=<factory>, debut_year=None, retire_year=None, library_ids=<factory>, end_year=None)[source]
Bases:
objectSaved setup profile for low-query identify bootstrap.
- Parameters:
- adsfolio.pdf.prefetch.build_publication_index(documents)[source]
Build DOI and filename-derived lookup indexes.
- Parameters:
- Return type:
- adsfolio.pdf.prefetch.estimated_query_budget(unmatched_file_count, strategies_per_file=4)[source]
Rough upper bound estimate for ADS query count during fallback phase.
- adsfolio.pdf.prefetch.match_pdf_from_prefetch(pdf_path, identifier, index)[source]
Match PDF against prefetched docs without performing ADS query.
- Parameters:
pdf_path (pathlib.Path)
identifier (adsfolio.pdf.identifier.PdfIdentifier)
- Return type: