Skip to content

v0.5.2: Offset pagination for search-compounds and get-compound-interactions

Choose a tag to compare

@cyanheads cyanheads released this 28 Jul 16:33
v0.5.2
93e0d94

Offset pagination for search-compounds and get-compound-interactions

  • pubchem_search_compounds gains offset (0-10000) to page CIDs past maxResults; identifier-mode paging re-slices the resolved CID set, bounded searches widen their upstream window to reach a page (#38)
  • pubchem_get_compound_interactions gains offset (0-2147483646) to page each requested kind past maxEntries; output gains a per-kind paging array with each kind's totalRecords/nextOffset/truncated
  • pubchem_get_compound_interactions's target kind switches its SDQ query from download to select, returning an exact per-kind total in the same round trip instead of inferring a floor
  • README: documents both tools' new offset ceilings and per-kind paging

This completes #38.

CHANGELOG v0.5.2