Skip to content

Changelog

The release notes live in packages/bibliofabric/CHANGELOG.md and are rendered here in full. The tagged releases with their assets are on GitHub Releases.

Changelog

All notable changes to this project are documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.12.0] - 2026-12-01

Breaking

  • Zenodo: ZenodoClient.oai returns the shared OaiPmhResource; the methods are unchanged. bibliofabric.zenodo no longer exports OaiResource, OaiSyncResource, or the Oai* models. Use client.oai and import the models from bibliofabric.oai.
  • arXiv: parse_feed takes the root Element that decode_xml(response) returns instead of the response text.

Changed

  • Resource.first() works on resources whose dialect has page_size_param=None: it drops page_size and reads the first record of the page at the API's natural size. The first() overrides that existed only for that case are gone (hkdir, mirabel, re3data).
  • OpenAlex: parent_works[].relationship and the /links relationship field became link_type (upstream, 2026-12-07). The models read both field names and map old /relationships/ ids to /link-types/; the parent_works.link_type and pull_notice_works.link_type filters replace parent_works.relationship. Docs and docstrings use the new part-of values subwork and component, which replaced volume and part in the same release; values still pass through unchanged.

Added

  • Resource.search_method: set it to "POST" to send search(), count(), iterate(), and batch_get() chunks as JSON bodies instead of query strings. The body comes from the new _build_search_body(params) hook, which receives exactly what a GET search would send as the query string and returns it unchanged by default.
  • Resource._next_cursor(response, body): search() and cursor-mode iterate() read the next cursor through it, so a resource can page through a response header instead of the body.
  • parse_link_header(value), exported from bibliofabric: reads an RFC 5988 Link header into a mapping of rel token to URL. None or an unparsable value returns an empty dict.
  • send_sparql(client, endpoint, query, ...) and run_sparql(client, endpoint, query, ...) in bibliofabric._async.sparql and its generated _sync twin: the shared sender for SPARQL endpoints. The Wikidata SPARQL resource and the OpenCitations sparql() methods are built on them with unchanged wire behavior.
  • decode_xml(response), exported from bibliofabric: parses an XML body into an Element and raises APIError, with the body quoted and the response attached, when the body is not well-formed XML.
  • A shared OAI-PMH 2.0 harvester: bibliofabric.oai holds the Oai* answer models, and OaiPmhResource in bibliofabric._async.oai (sync twin OaiPmhSyncResource) serves the six verbs and the two iterators on any repository endpoint. ArxivClient.oai mounts it on https://oaipmh.arxiv.org/oai through a second client for that host, which shares the settings and the rate budget of the query client.
  • ClinicalTrials.gov client (bibliofabric.clinicaltrials): study search, get, batch, and CSV download; data model metadata, search areas, enums; the /stats routes; and version(), with typed study models derived from the upstream OpenAPI document.
  • bibliofabric.inspirehep: typed async and sync client for the INSPIRE-HEP API, covering nine collections, identifier routes (DOI, arXiv, ORCID), citation formats, and citing records.
  • HAL client (bibliofabric.hal): document search over /search/ with offset and cursorMark paging, document lookups by docid, HAL identifier, DOI, or record URL, portal- and collection-scoped searches, and the structures, journals, authors, domains, instances, ANR and European projects, metadata, and document type referentials. The client needs no credentials and defaults to 3 requests per second.
  • bibliofabric.dblp: a DBLP client with publication, person, and venue search, prefix completions in the page metadata, and full record pages by DBLP key.
  • GLEIF client bibliofabric.gleif: LEI records with the relationship, ISIN, and field-modification routes, the autocompletion endpoints, the registry code lists, and export_lei_records() for CSV, XLSX, and JSON export, with the normalize_lei() and is_lei() helpers of bibliofabric.ids normalizing and checking the identifier.
  • Dryad client (bibliofabric.dryad): dataset search, records, versions, files, digest lookup, reports, and downloads, which need a Dryad application token.
  • Figshare client (bibliofabric.figshare): articles, collections, projects, the category, license, and item type vocabularies, and file downloads, with optional token auth for private records.
  • NIH RePORTER client (bibliofabric.nihreporter): project and publication searches with criteria nesting, field selection, offset paging, and batch reads by application id on projects and by PMID or core project number on publications.
  • Dataverse client (bibliofabric.dataverse): the search API (repeating type/subtree/fq, sort/order), collections (contents, facets), datasets with versions, files, typed metadata blocks and raw exports, streaming downloads with format=original, metadata block definitions, server info, and the metrics routes; DATAVERSE_ settings and the optional DATAVERSE_API_KEY sent as X-Dataverse-key. Write routes are out of scope.
  • Software Heritage client (bibliofabric.softwareheritage): origins, snapshots, revisions, releases, directories, contents, known, resolve, raw, extid, provenance, metadata, vault, saves, forges, and stats resources for the archive.softwareheritage.org API, with a generated sync twin, docs, tests, and examples.
  • ChemRxiv client (bibliofabric.chemrxiv): ChemRxivClient and ChemRxivSyncClient with items (search, filters, sort tokens, get, DOI lookup), categories, subjects, licenses, and OAI-PMH on /oai. The chemrxiv.org API retired on 2026-01-21; the client follows the final published spec 0.0.102 and the examples point at a live Cambridge Open Engage instance through the base_url override.
  • Open Policy Finder client (bibliofabric.openpolicyfinder): the Jisc Open Policy Finder API, with funders, funder groups, publishers, publisher policies, journals, and the OpenDOAR repository directory as the repository item type. Typed filter models serialize into the JSON filter parameter; limit/offset paging with search_after for pages past the 10000-record offset window; the CSV /object_ids directory parses into ObjectIdEntry records. Every route needs an API key (OPENPOLICYFINDER_API_KEY, sent as x-api-key).
  • bibliofabric.osfpreprints: OSF API v2 client for preprints (search, filters, files, citations, versions, contributors, subjects, identifiers, institutions) and preprint providers (list, preprints, licenses, citation styles, subjects, taxonomies, moderators, subscriptions, withdraw requests).
  • Gateway to Research client (bibliofabric.ukrigtr) for the UKRI GTR-2 API: project, person, organisation, and fund search and records, per-entity sub-routes, the merged outcomes stream plus 13 typed outcome resources with project-scoped variants, and the configs and examples metadata routes. batch_get is disabled (upstream ignores id filters) and the merged outcomes route supports no iterate()/collect() (upstream repeats records across pages); both raise ConfigurationError.
  • bibliofabric.core: client for the CORE API v3 (works, outputs, journals, and data providers, with the shared GET and POST search routes, aggregates, per-record stats, full text downloads, raw XML records, TEI XML, discovery, and recommendations). Built and tested against the published OpenAPI document; no live check ran.
  • RAiD client: bibliofabric.raid talks to the RAiD Federation API (RaidClient/RaidSyncClient, prefix RAID_). It searches the federated open-access RAiD dataset (q, one identifier filter, updatedSince/createdSince sync windows, cursor paging), fetches single RAiDs by handle, lists the RAiDs of one service point prefix, and reads the service point directory. normalize_raid() and is_raid() in bibliofabric.ids normalize and check RAiD handle paths.
  • bibliofabric.nsfawards: client for the NSF Award Search APIs, with award search and filters, award records by id, project outcomes, search facets, the v2 lookup vocabularies, and the fiscal-year export files with the iter_export_awards reader.
  • Mir@bel client (bibliofabric.mirabel): title search over /titres with fixed 1000-record offset windows, title and journal-history detail with transparent merged-id redirects, publishers by id and IdRef, online-access lists by journal or title, the subject taxonomy and its per-journal and per-grappe routes, and the partner-scoped /mes/ routes (unverified, needs a partner key). No credentials are needed for the public routes; the client defaults to 1 request per second.
  • MeSH client (bibliofabric.mesh): descriptor, entry term, and descriptor-qualifier pair lookups with exact, contains, and startswith matching, allowed qualifiers and descriptor details, the queryable years and per-resource label lookups, JSON-LD records by id, and the SPARQL endpoint with typed SELECT and ASK answers, raw multi-format queries, and offset-paged row iteration.
  • bibliofabric.lobidgnd with LobidGndClient, LobidGndSyncClient, LobidGndSettings, the authorities resource (search, offset iteration, record lookup, gndIdentifier batching, autocomplete suggestions, JSONL bulk download) and the reconcile resource (service manifest and Reconciliation Specification 0.2 queries).
  • bibliofabric.identifiersdotorg: client for the Identifiers.org resolution and registry APIs. resolve(), reverse(), similar(), namespace_usage(), and download_resolver_dataset() on the client; the namespaces, resources, institutions, and locations registry resources with their search routes; iter_resolver_dataset() reads the full registry snapshot (about 2 MB).
  • bibliofabric.codemeta: pure parsers for codemeta.json (CodeMeta JSON-LD) and CITATION.cff (Citation File Format 1.2.0). parse_codemeta and parse_cff take a mapping, text, or bytes; parse_codemeta_file and parse_cff_file take a path. Every failure raises bibliofabric.ValidationError. There is no client class: the source has no API, so the package ships no client, settings, or sync twin. Adds the pyyaml dependency.
  • bibliofabric.hkdir: a client for the DBH kanalregister API (kanalregister.hkdir.no), which serves the publication-channel tables 850 to 853 (publishers, journals, and their level per year). Reads run one DBH query per request through search(), search_csv(), and get(); download_csv() streams each whole table and iter_table_csv() parses it into typed records.
  • bibliofabric.signposting: a resolver for FAIR signposting. resolve() reads the typed links of a landing page URL and resolve_doi() resolves a DOI through doi.org first. Both send HEAD (a server that answers 405 is retried with GET), follow redirect hops themselves, parse the Link header into every typed link with its attributes, and follow a linkset link into an RFC 9264 JSON or application/linkset document.
  • bibliofabric.jufo: new client for the JUFO publication channel REST API v1.1. It covers the search route (etsi.php) through the journals, book_publishers, conferences, and channels resources with lookups by ISSN, ISBN prefix, name, conference abbreviation, and type, and the single-channel route (kanava/{id}) through channels.get() and exists(). The API pages no results, so count() is disabled and iteration sends one request. A dump reader ships with the client: iter_dump_records() streams the nightly massa.json.zip full corpus, a local path or an open binary file object, as validated Channel records.
  • bibliofabric.pubmed: a client for the NCBI E-utilities, the programmatic interface of PubMed. client.ids wraps esearch.fcgi (offset paging, usehistory support), client.summaries wraps esummary.fcgi (by id and composed history searches), client.records wraps efetch.fcgi (PubmedArticleSet XML parsed into typed PubmedArticle models), client.links wraps elink.fcgi (neighbor and provider links), and client.info wraps einfo.fcgi. Optional PUBMED_API_KEY rides requests through QueryParameterAuth; tool and email contact parameters are configurable. The keyless default pace is the documented 3 requests per second.
  • re3data: Re3dataClient and Re3dataSyncClient for the re3data API v40 (Metadata Schema 4.0): filtered repository search (query plus the countries, subjects, and types array filters, and raw params for the rest), and full repository descriptions by re3data id. Two requests per second by default; no credentials.
  • VIAF client: bibliofabric.viaf looks up authority clusters by id, LCCN, or source-local id (client.clusters.get, by_lccn, by_source_id), searches them with CQL in the full 10-per-page and BriefVIAF 250-per-page schemas (search, iterate, collect, first, count), reads the SRU explain answer (client.clusters.explain), and queries AutoSuggest (client.suggest.clusters). The parsers parse_cluster, parse_search_response, and parse_explain and the cql() helper are exported. ViafSyncClient is the generated sync twin.
  • NASA ADS client: bibliofabric.nasads searches the ADS Solr index (client.records.search/iterate/count/get), queries up to 2,000 bibcodes per request (client.records.bigquery), tokenizes queries (client.tokens.parse), and exports BibTeX, AASTeX, RIS, CSL, custom, and XML formats (client.exports). Every route needs an ADS token (NASADS_API_TOKEN). Built from the published API documentation; no live API check ran.
  • bibliofabric.base, a client for the BASE HTTP interface: SOLR query search with facets, field projection, and offset paging (hits at most 125, offset at most 999), record lookup by dcdocid, and the repository directory with per-repository profiles. Access needs a whitelisted IP or an apikey (BASE_API_KEY); the default pace is the documented one request per second.

Fixed

  • Core: errors raised while following redirects or downloading carry the request that failed instead of the original one; redirect responses close their streams; HEAD redirects drop the body headers; decode_xml names an empty body as the problem and parses bytes when the response declares no charset.
  • Core: parse_link_header lower-cases rel tokens and splits quoted, escaped link entries; RAiD and LEI normalization accepts the handle.net, raid:, and single-record spellings; OAuth2 token invalidation is locked against a racing refresh; resolve_settings revalidates the merged settings, so field validators run on the updated values.
  • OAI-PMH: harvest() takes a limit, validated like the other limits.
  • codemeta: pyyaml moved from the runtime dependencies to a new bibliofabric[codemeta] extra; the CFF and codemeta parsers raise ConfigurationError naming the extra when pyyaml is missing and ValidationError for files that are not UTF-8.
  • Thirty-one clients got the same review pass. NASA ADS get() quotes the bibcode query and caps the page at one record, and its batch routes reject a bare bibcode string; GLEIF routes guard negative limits and tolerate a null meta. The rest of the touched clients correct request shapes, page caps, and parsing, each fix with a regression test in its suite.

[0.11.0] - 2026-11-30

Breaking

  • OpenAlexClient and CrossrefClient expose the rate-limit headers of the last response as the public read-only property last_rate_limit_headers. The private _last_rate_limit_headers name is gone.
  • The module-level get_settings() function is removed from every client config.py. Build settings with the <Source>Settings class.
  • walk_pages in bibliofabric._async.resources is private (_walk_pages).

Added

  • Europe PMC client.grants has count(), first(), and collect().
  • ORCID SolrResult declares orcid_id, given_names, and family_names.

Fixed

  • Wikidata entities.iterate_ids() raises NotFoundError for an id that a successful response leaves out, as its docstring says. With on_error="skip" the id is recorded in failures. Before, the id was dropped without a trace.
  • WikidataSettings sets uniform_pace_clears_rate_limits, so an overall max_requests_per_second also replaces the separate SPARQL pace, as in the ROR, Zenodo, Crossref, and OpenAlex settings.
  • ISSN records.count() raises ConfigurationError when the search page carries no total, like every other count(). It returned 0.
  • Europe PMC articles.get() and preprints.get() raise NotFoundError when the API answers an unknown id with HTTP 200 and an error list, and exists() returns False for it. Before, get() raised ValidationError.
  • Europe PMC preprints.references(), preprints.citations(), and preprints.full_text_xml() raise ConfigurationError before any request, because the API answers 404 or 500 for preprint ids.
  • Several docs pages called methods or passed parameters that do not exist: Wikidata suggestions(properties=) is property_ids=, the rxiv method table now matches by_doi(), search(), first(), and count(), and the ROR dumps listing is releases(). tests/test_docs_drift.py now checks every client.<resource>.<method>() call in the client docs against the real signatures.

Removed

  • The docs site no longer publishes the two internal review documents; they moved to archive/reviews/. The client pages state upstream behavior without the dates of individual test runs.

Changed

  • The sync copies of the tests are no longer committed. The repository conftest.py generates them before every pytest run, and scripts/unasync.py --check compares only the twins under src/.
  • The live API test suite is removed. The example scripts under packages/bibliofabric/examples/ are the live checks.
  • The thirteen per-client settings test files are replaced by one parametrized module, packages/bibliofabric/tests/test_settings_matrix.py. Handwritten tests that differed only in a literal value are now one parametrized test with a row per literal, and tests that repeated every assertion of another test are removed.

[0.10.0] - 2026-11-29

This release redesigns the public API in one step. Code written for 0.9 needs changes; the list below names every rename. No old name is kept as an alias.

Breaking

Core:

  • ResourceClient is Resource. Sync twins add Sync before the kind word: BaseApiSyncClient, SyncResource, WorksSyncResource, OpenAlexSyncClient.
  • Every resource class is named <Concept>Resource (WorksResource, RecordsResource), without a source prefix. Client-specific resource bases are no longer exported.
  • Hook and helper methods are private: _build_filter_params, _format_sort, _build_batch_params, _default_params, _search_path, _normalize_id, _record_keys, _item_path on resources, and _rate_class, _on_response, _is_retryable, _parse_json, _default_headers, _unwrapper on clients.
  • Client packages no longer re-export the core exceptions, Page, get_settings, unwrappers, dialect objects, or internal constants. Import exceptions and Page from bibliofabric.
  • failures lists hold ValidationError instances (with .raw) instead of (dict, Exception) tuples.
  • count() raises ConfigurationError when the API reports no total. search() raises when page_size is unsupported or when page and cursor are both given.
  • batch_get() caps each chunk at the resource's batch_size; concurrency=None uses the client's limiter bound.
  • QueryDialect parameter names default to None. filters_model is gone. Settings objects are frozen, and get_settings() no longer caches.
  • unsupported_operation() stubs are typed NoReturn.
  • strip_url_prefix is no longer exported from bibliofabric.

Parameters and return types in every client:

  • No resource attribute is named search. Search lives on the resource whose records it finds: Europe PMC client.articles.search(), ORCID client.records.search() and client.records.expanded_search(), Wikidata client.entities.search(), client.items.search() and client.properties.search(), ISSN client.records.search().
  • The field projection is select everywhere (was fields or props), rows per page are page_size (was limit or rows), a row offset is offset (was start), and sorting takes one sort value such as "submitted_date:desc" (was sort_by/sort_order, sort_field, or order).
  • Parameters no longer use builtin names: type became entity_type, annotation_type, or value_type; format became output_format; filter became filters or filter_query; set became oai_set; property became property_id.
  • Methods that return one page return Page: ISSN search and LTWA, Europe PMC grants and annotations, Semantic Scholar patent citations, and the REST search routes of Wikidata.
  • Models use snake_case fields with the wire names as aliases (OpenAIRE, Semantic Scholar, DOI, Wikidata, Europe PMC). Convenience values are plain properties and no longer appear in model_dump().

Per client:

  • OpenAlex: search_scoped(text) is search_scoped(query), sample(n) is sample(sample_size), group_by(group_by) is group_by(field), and batch_get_by_openalex_id() is removed (use batch_get(ids)).
  • OpenAIRE: the auth parameter is removed (use auth_strategy=). get_fields() is removed (use batch_get(ids, select=[...])). research_products.search_links() and iterate_links() are relations() and iterate_relations(); get_relations_info() is relation_types(). Scholix search_links() and iterate_links() are search() and iterate(), the _v2 variants are removed, and get_kpi() is kpi(). group_by() is removed (use facets()).
  • Crossref: CrossRefDate and CrossRefType are CrossrefDate and CrossrefType. ScopedWorksResource is removed; works() on journals, members, types, and prefixes returns a WorksResource. facets(facets=...) is facets(fields=...) and sample(n) is sample(sample_size). Pool selection lives in CrossrefSettings.pool.
  • ROR: dumps.list() is dumps.releases(). find_by_external_id() and find_by_funder_doi() are by_external_id() and by_funder_doi(). OrganizationFilters fields lose the doubled words (country_country_code is country_code).
  • Zenodo: ZenodoRecordsClient and ZenodoCommunitiesClient are RecordsResource and CommunitiesResource. ZenodoFiles.keys is filenames. export(id, format) is export(id, output_format=). The OAI methods take oai_set=, and metadata_prefix defaults to oai_dc. OaiError is removed.
  • DataCite: dois() on clients, providers, repositories, and prefixes takes the explicit search keywords instead of **kwargs.
  • OpenCitations: meta.author() and meta.editor() are by_author() and by_editor(). SparqlTerm is SparqlBindingValue, from bibliofabric.sparql.
  • DOI: handle(type=) is handle(value_type=). AgencyAnswer.RA is agency, AgencyAnswer.DOI is doi, and HandleRecord.responseCode is response_code.
  • Semantic Scholar: papers.batch() and authors.batch() are removed; batch_get() uses the POST batch routes. datasets.latest() is removed (use release("latest")). papers.iterate() walks the bulk route by default (via="search" keeps the relevance search). PatentCitations is removed.
  • ORCID: client.record is client.records; client.search and client.expanded_search are removed (see above), and csv() takes select=, page_size=, and offset=. NormalizationError is NormalizationFailure. The text() helper is removed. Single-item readers return typed models instead of dicts.
  • Europe PMC: the SearchResult model is Article. client.search is merged into client.articles, and fields() there is index_terms(). Y/N flags are bool. AnnotationPage is removed.
  • Wikidata: client.search is removed (see above). WikidataQueryClient is private.
  • DOAJ: get_by_id() is removed; get() accepts an ISSN, a DOI, a DOAJ id, or a doaj.org URL.
  • ISSN: client.search.page() is client.records.search(), and ltwa.page() is ltwa.search(). SearchPage and LtwaPage are removed.
  • arXiv: search(start=) is search(offset=). ArxivEntry.version is version_number, and published and updated are datetime. The constants carry the ARXIV_ prefix.
  • bioRxiv and medRxiv: details.get() and published.get() are by_doi(). published.biorxiv() and by_publisher() are search_biorxiv() and search_by_publisher(). server is a keyword that defaults to biorxiv. Dates are datetime.date, and statistic years are int.

Added

  • Every client constructor takes mailto=, and the clients with credentials take them as keywords: ZenodoClient(api_token=), SemanticScholarClient(api_key=), and OrcidClient(access_token=, client_id=, client_secret=). CrossrefClient takes http_client=.
  • Page iterates over its records and supports len(); its total, next_cursor, and page fields have defaults.
  • New core modules: bibliofabric.concurrency (Limiter, run_bounded, maybe_await), bibliofabric.filters (serialize_filter_params and the filter type aliases), and bibliofabric.sparql (SPARQL result models). SafeInt, NullUnwrapper, and TokenAuthMethod are exported from bibliofabric.
  • batch_get(params=...), and exists() falls back to GET when the API answers HEAD with 405 or 501.
  • Every disabled method names the call that works, for example Use client.articles.search(query=...) instead.
  • More id forms: Europe PMC and PubMed URLs, PPR preprint ids, semanticscholar.org URLs, bioRxiv content URLs, doaj.org URLs, and the printed ISSN 2049-3630 form.
  • New methods: rxiv and ISSN first() and count(), arXiv exists(), Zenodo vocabulary collect(), first(), and count(), Europe PMC preprints.get() and exists(), and DOAJ Article.year, Article.abstract, and Article.journal_title.
  • Examples: sync_quickstart.py for Crossref and ROR.

Fixed

  • batch_get() raises ConfigurationError on a resource without a batch route, and when given a bare string instead of a list of ids.
  • Unsupported methods on OpenAlex and OpenAIRE links, DataCite batch_get(), and ROR search(query=, advanced=) raise before any request. Zenodo export() rejects an unknown format before the request.
  • DOAJ iterate() stops at the 1,000-record cap with a warning instead of raising.
  • Wikidata entities no longer leak a redirect marker into model_extra.
  • Semantic Scholar patent search sends /patent/search.
  • The default filter serialization joins list values with commas instead of sending their Python repr.

[0.9.1] - 2026-11-29

Changed

  • The package README and the documentation site are reorganized around using the clients. The site has one Crossref quick start, a guide for setup, settings, paging, search, identifiers, errors, and combining clients, and a quick start for each client. The guide and client pages name only methods, fields, and settings that exist in the package.

Fixed

  • Releases carry provenance again. The publish job signs a PEP 740 attestation for each file with pypa/gh-action-pypi-publish; 0.7.0 to 0.9.0 were uploaded with uv publish, which only uploads attestations that already exist.
  • Crossref client: works.batch_get() filters by doi by default. Crossref has no id filter for works, so the inherited default made every batch fail with HTTP 400.
  • Crossref client: batch_get() on journals, funders, members, types, prefixes, and licenses raises ConfigurationError before any request. Crossref has no id filter on those routes, so the inherited default made every batch fail with HTTP 400 or 404. The works resources, including the scoped ones such as journals.works(issn), keep batch_get().
  • OpenAlex client: Award.lead_investigator.affiliation.ids is a list of InvestigatorAffiliationId models. Some awards send a list there, and the old str annotation made awards.search() raise ValidationError on them.
  • Europe PMC client: articles.supplementary_files() sends Accept: application/zip. The route answers HTTP 406 to the application/octet-stream header the method used to send, so every call raised APIError.

[0.9.0] - 2026-11-29

Breaking

  • bibliofabric is one distribution. The packages aireloom, aletheca, and stavrophora are discontinued; their clients ship inside bibliofabric as bibliofabric.openaire, bibliofabric.openalex, and bibliofabric.crossref. The migration guide lists every rename.
  • Client classes carry the name of their source. AireloomClient, AireloomSettings, and AireloomSyncClient become OpenAireClient, OpenAireSettings, and OpenAireSyncClient; Aletheca* becomes OpenAlex*; Stavrophora* becomes Crossref*. Environment prefixes follow: AIRELOOM_ becomes OPENAIRE_, ALETHECA_ becomes OPENALEX_, and STAVROPHORA_ becomes CROSSREF_.
  • OpenAireSettings renames openaire_client_id, openaire_client_secret, and openaire_refresh_token to client_id, client_secret, and refresh_token; the environment names become OPENAIRE_CLIENT_ID, OPENAIRE_CLIENT_SECRET, and OPENAIRE_REFRESH_TOKEN.
  • OpenAlexSettings reads the key from api_key and OPENALEX_API_KEY only. The openalex_api_key constructor alias and the ALETHECA_OPENALEX_API_KEY environment name are removed.
  • Only bibliofabric.__version__ exists; client subpackages export no __version__.
  • The default user agent names the client subpackage (bibliofabric.openalex/0.9.0) instead of the discontinued package.

Added

  • Sixteen client subpackages, each with an async client and a generated sync twin: bibliofabric.openalex (OpenAlex), bibliofabric.openaire (OpenAIRE Graph and Scholexplorer), bibliofabric.crossref (Crossref REST and the beta Data Citation API), bibliofabric.ror (ROR), bibliofabric.zenodo (Zenodo and OAI-PMH), bibliofabric.datacite (DataCite REST and GraphQL), bibliofabric.opencitations (OpenCitations Index and Meta), bibliofabric.doi (DOI registration agencies, content negotiation, Handles), bibliofabric.semanticscholar (Semantic Scholar), bibliofabric.orcid (ORCID public API), bibliofabric.europepmc (Europe PMC), bibliofabric.wikidata (Wikidata), bibliofabric.doaj (DOAJ), bibliofabric.issn (ISSN Portal), bibliofabric.arxiv (arXiv), and bibliofabric.rxiv (bioRxiv and medRxiv). Thirteen of them were never released as separate packages.
  • Runnable example scripts for every client under packages/bibliofabric/examples/<client>/, each with a README; every client's docs index links its folder.
  • OpenAire client: research_products.get() accepts a DOI (bare or as a resolver URL) and persons.get() accepts an ORCID iD. Both resolve through the ids filters and raise NotFoundError when nothing matches; internal OpenAIRE ids keep the by-id route.
  • Crossref client (changes after stavrophora 0.5.0): client.data_citations.iterate() accepts limit=, cursor= (the 0-based page number to resume from; Page.next_cursor holds it as a string), on_error= / failures= for skipping invalid records, and on_page(page_number, next_page) for checkpoints (async callbacks are awaited), plus collect() and first() on the resource.
  • Crossref client: on_response() also captures the beta route's singular x-rate-limit header into last_rate_limit_headers.
  • Crossref client: UpdateTo is exported from bibliofabric.crossref and listed in __all__.
  • Crossref client: works.batch_get_by_doi() raises ConfigurationError before any request when a DOI lacks the 10.<prefix>/<suffix> shape. Crossref answers the whole batch with HTTP 400 for one malformed DOI.
  • attached_request(response) exported from bibliofabric: returns the request that produced a response, or None when the response is detached (hand-built or mocked), so callers never trip over the RuntimeError that reading response.request raises for detached responses.
  • BaseApiClient.download(path, dest, *, headers=None, follow_redirects=True) (and SyncBaseApiClient.download): streams the body into a temporary file next to dest and moves it over dest only after the last chunk arrived, so a failed download leaves no partial file and parent directories are created when missing.
  • unsupported_operation(name) for ResourceClient subclasses: assigning search = unsupported_operation("search") makes that inherited entry point raise ConfigurationError naming the class and method before any HTTP call; batch_size = 0 disables batch_get the same way.
  • JsonApiUnwrapper.next_cursor() accepts links.next as a JSON:API link object ({"href": "<url>"}) in addition to a URL string.
  • An error the unwrapper raises from a parsed body (APIError for a wrong envelope, NotFoundError or RateLimitError for an error payload answered with HTTP 200) carries the request and response of the call when it comes from a ResourceClient method, with the auth strategy's query-parameter credentials redacted in the message.

Changed

  • Crossref client (changes after stavrophora 0.5.0): data_citations.search() and data_citations.iterate() take page_size= instead of rows=; the wire parameter stays rows.
  • Crossref client: a malformed beta data citations envelope (no message object, or total-results / next-page that is neither an integer nor a digit string) raises APIError with the request and response attached instead of ConfigurationError or a raw ValueError.
  • Crossref client: Work.retractions matches updated-by entries case-insensitively, and Work.is_retracted returns False when a reinstatement entry is dated after the newest retraction.
  • Crossref client: CrossrefSettings.plus_token is hidden from repr(); the value stays readable on the attribute.
  • Crossref client: removed the local SafeStrList; models use bibliofabric.SafeList[str], which behaves the same. SafeInt and IdSafeStr moved to bibliofabric.crossref.models.base.
  • With follow_redirects=True, a redirect that changes the origin (scheme, host, or port) no longer carries headers or query parameters that an auth strategy added, so credentials never cross to another host; httpx by itself strips only Authorization, Cookie, and Proxy-Authorization. Caller-supplied Authorization and Cookie headers are still dropped on origin changes as httpx does. Redirects are followed hop by hop, up to the http client's max_redirects, and its cookie jar still fills the Cookie header of every hop.
  • ResourceClient.get() raises ValidationError (request and response attached) when the unwrapped item contains none of the keys the model declares, after alias resolution. search(), iterate(), collect(), first(), and batch_get() treat such records as validation failures: raised by default, or skipped into failures with on_error="skip", instead of validating them into models whose every field holds its default. Models that declare no fields keep working.
  • BaseApiClient.get_json() forwards timeout, retry, and follow_redirects to request() like every other call.
  • ClientCredentialsAuth.invalidate_token(failed_token=None) clears the cached token only when it still holds that token; BaseApiClient passes the rejected token on HTTP 401, so two concurrent 401s cannot drop a token another request has already replaced.
  • normalize_arxiv() lowercases the whole id, so the version suffix normalizes too (1706.03762V1 to 1706.03762v1).
  • normalize_issn() accepts ISSN Portal URLs such as https://portal.issn.org/resource/ISSN/2049-3630.
  • ResourceClient.search() and iterate() raise ConfigurationError for page_size below 1 before any request, instead of sending it upstream.
  • A redirect loop under follow_redirects=True raises NetworkError (the httpx.TooManyRedirects is kept as __cause__) instead of leaking the httpx exception, in request(), get_json(), stream(), and download().
  • AuthStrategy.invalidate_token() takes a failed_token argument. A custom auth strategy written against the old zero-argument signature raises TypeError on an HTTP 401 and must add the parameter.

Fixed

  • OpenAire client (fix after aireloom 0.9.1): the client imports with pydantic 2.9.0, the declared floor of bibliofabric. The three filter type aliases are plain TypeAlias assignments again: pydantic builds a schema from a type statement (PEP 695) only from 2.10 on, so the import failed with 2.9.
  • Crossref client: client.data_citations resolves /beta/datacitations against the base URL's parent directory, so a custom base_url path prefix (for example https://mirror.example.org/crossref/v1) is preserved instead of stripped.
  • Crossref client: data_citations.iterate() validates page_size, limit, on_error, and cursor before the first request, stops on an empty page, and stops when next-page repeats or moves back instead of looping forever.
  • _search_params() no longer calls search_path(None) and no longer compares path results to decide whether query= is supported. It checks whether the subclass overrides search_path, so a subclass may map None or "" to a wildcard and may reject None itself without breaking valid queries.
  • Identifier normalizers strip #fragment and ?query parts before trailing slashes; normalize_isbn() and normalize_isni() accept resolver URLs with trailing slashes; normalize_ror() also strips http://www.ror.org/ and www.ror.org/; normalize_wikidata_qid() accepts bare wikidata.org hosts and the Property: namespace (https://www.wikidata.org/wiki/Property:P31); digit checks reject Unicode digits such as ² instead of raising ValueError; the undocumented gdz: GND prefix was removed.
  • A User-Agent set in default_headers is no longer dropped in favor of the fallback User-Agent injected for a caller-owned http_client.
  • The test fixture FakeSettings pins every settings field explicitly, so exporting USER_AGENT, FOLLOW_REDIRECTS, or MAX_RETRIES cannot change test behavior.

[0.8.0] - 2026-11-28

Companion client versions built on this release: aireloom 0.9.1, aletheca 0.5.1, and stavrophora 0.5.0 (all pinning bibliofabric>=0.8,<0.9), and the eleven Wave 1 libraries.

Added

  • BaseApiClient.default_headers property: headers sent with every request() and stream() call, overridden per call by headers=.
  • follow_redirects: bool | None = None on BaseApiClient.request() and BaseApiClient.stream(), overriding BaseApiSettings.follow_redirects for one call (for example to read the Location header of a DOI resolver's 3xx response, or to follow content-negotiation redirects).
  • ResourceClient.default_params() hook: query parameters sent with every list, count(), and batch request.
  • ResourceClient.search_path(query) hook: the list route for search, count(), and batch requests, for APIs that carry the query in the path. query= is accepted when the dialect has no query_param as long as the search path uses the query.
  • JsonApiUnwrapper in bibliofabric.unwrap: reads JSON:API envelopes (data, meta.total, and the cursor query parameter in links.next).
  • Identifier normalizers normalize_isbn (ISBN-10 to ISBN-13), normalize_isni, normalize_arxiv, normalize_pmid, normalize_pmcid, normalize_wikidata_qid, normalize_gnd, and normalize_viaf.

Changed

  • normalize_ror also strips the ror.org/ and https://www.ror.org/ prefixes.

[0.7.0] - 2026-11-27

Companion client versions built on this release: aireloom 0.9.0, aletheca 0.5.0, and stavrophora 0.4.0 (all pinning bibliofabric>=0.7,<0.8).

Added

  • on_error ("raise" / "skip") and failures collector on ResourceClient.search(), batch_get(), iterate(), collect(), and first() (#16).
  • Concise, sanitized upstream HTTP error body summaries in APIError and AuthError __str__, plus APIError.status_code and RateLimitError.retry_after (#18).
  • validate_model() helper exported from bibliofabric (wrapping pydantic.ValidationError into bibliofabric.ValidationError with the offending payload attached) and parse_json() guarding 2xx JSON decoding.
  • select= and params= passthrough on ResourceClient.get() and id: str | int identifier widening on resource lookups (get(), exists(), item_path()).
  • QueryDialect.count_page_size to control the page size used by count().
  • Idempotent-by-default retry policy (GET, HEAD, OPTIONS, PUT, DELETE) with per-call retry: bool | None = None override on BaseApiClient.request() (enabling retries on read-only POST batch calls with retry=True or disabling retries with retry=False).
  • BaseApiSettings.follow_redirects (default False) and BaseApiSettings.connect_timeout (default None), plus automatic httpx.Limits sizing (max_connections=max(20, max_concurrency * 2), max_keepalive_connections=max(10, max_concurrency)) for owned httpx clients.
  • BasicAuth(username, password) and RefreshTokenAuth(token_url, refresh_token, ...) auth strategies (exported from bibliofabric and bibliofabric.auth).
  • ClientCredentialsAuth now supports scope, token_auth_method ("basic" or "post"), timeout, caller-owned http_client, and invalidate_token().
  • Single-retry-on-401 token refresh in BaseApiClient.request() and stream() when the auth strategy exposes invalidate_token().
  • Automatic custom credential redaction via redacted_query_params and redacted_headers on auth strategies (QueryParameterAuth, HeaderAuth, BasicAuth, StaticTokenAuth, OAuth2 strategies), applied to debug logs and exception messages.
  • BaseApiClient.on_response(response) hook called after every HTTP response before status errors raise.
  • BaseApiClient.stream(method, path, *, params=None, headers=None, timeout=None) context manager (async and sync) for streaming responses with auth, rate limiting, on_response, 401 refresh, and error mapping.
  • Overridable ResourceClient._fetch_batch_chunk(field, chunk, *, select=None) hook so POST-batch and path-batch clients inherit chunking, deduplication, concurrency, validation, on_error/failures, and keying from batch_get().
  • Flexible QueryDialect: page_size_param may be None (unpaged APIs), max_offset caps page/offset depth, and ResourceClient(..., dialect=...) allows per-instance dialect overrides.
  • Fast-path bulk validation using a lazily cached TypeAdapter(list[E]) per ResourceClient subclass on the on_error="raise" path, falling back to per-record validation on failure so ValidationError.raw still attaches the offending record.
  • Python 3.14 trove classifier in pyproject.toml.

Changed

  • ResourceClient._search_params() (plus get(), batch_get(), and iterate()) now fail fast with ConfigurationError when callers pass query, select, sort, cursor, or page against a QueryDialect that does not declare the corresponding parameter.
  • BaseApiSettings validates positive/non-negative bounds and finiteness for timeout, max_retries, max_retry_wait, max_requests_per_second, max_concurrency, and rate_limits entries (allowing None to disable pacing for a specific rate class).

Fixed

  • Non-starving O(1) Limiter: reserves rate-class slots monotonically before acquiring concurrency slots so long spacing or 429 backoff sleeps do not block sibling classes or workers.
  • ResourceClient.first() now requests page_size=1 instead of fetching a full default page.
  • ResourceClient.count() omits the cursor parameter for page/offset and hybrid dialects (cursor-only dialects still send cursor_start) and honors QueryDialect.count_page_size.
  • Injected http_client instances now resolve base_url properly and receive the configured User-Agent header when not already set.
  • ClientCredentialsAuth uses monotonic clocks for token expiry, handles missing/short expiry cleanly, and surfaces token-endpoint errors consistently.
  • normalize_orcid() strips trailing slashes and validates digit/checksum format before hyphenating; normalize_ror() strips trailing slashes before lowercasing.

[0.6.0] - 2026-11-26

Overhaul of the public API. Versions of the client libraries after this release: aireloom 0.8.0, aletheca 0.4.0, stavrophora 0.3.0; they pin bibliofabric>=0.6,<0.7.

Changed

  • Auth strategies implement both method pairs (async_authenticate/async_close and authenticate/close), so one strategy object works with either client variant. ClientCredentialsAuth lazily creates an httpx.AsyncClient or httpx.Client per variant, guards each variant's refresh with its own lock, and shares the cached token.
  • The bibliofabric.client and bibliofabric.resources module paths are gone; import BaseApiClient, ResourceClient, and OnError from the package root.
  • ResourceClient.batch_get bounds its chunk fetches through the shared run_bounded primitive instead of a local semaphore + gather.
  • Search text is keyword-only (query=), and a string passed in the filters position raises ConfigurationError naming query= before any request is sent. Before, a positional query was sent as the page parameter (#12).

Breaking changes

  • Replaced the four resource mixins (GettableMixin, SearchableMixin, CursorIterableMixin, PageIterableMixin) and BaseResourceClient with one generic ResourceClient[E], configured by a frozen QueryDialect. Behavior knobs are now hook methods (build_filter_params, format_sort, build_batch_params, normalize_id, item_path) instead of _param_* class attributes.
  • request() always returns httpx.Response and raises on status >= 400: 404 is NotFoundError, 429 is RateLimitError, 401/403 is AuthError, other statuses APIError. The silent raw-dict/httpx.Response fallbacks on validation failure are gone; get(), search(), and iterate() raise ValidationError carrying the rejected payload in raw.
  • search() returns a generic Page[E] (results, total, next_cursor, page, meta) instead of an API-specific envelope or raw dict.
  • ResponseUnwrapper methods were renamed to results, item, total, next_cursor, meta (was unwrap_results, unwrap_single_item, get_next_page_token, get_total_results).
  • BaseApiSettings was reduced to the fields the client actually reads (timeout, max_retries, max_retry_wait, max_requests_per_second, max_concurrency, user_agent, mailto). Removed caching, pacing, hook, and rate-limit-buffer settings; subclasses set their own env_prefix.
  • Removed: pre/post request hooks, response caching (enable_caching, cache_*, cachetools), rate-limit header pacing, raw= flags, on_validation_error hooks, expected_model parameters, AuthStrategyType, get_base_settings(), DigMixin/safe_dig, ValidationErrorContext, BibliofabricRequestError, log_config.configure_logging(), and the loguru dependency. The library uses standard logging and adds no handlers.
  • batch_get moved into ResourceClient with signature batch_get(ids, field="id", batch_size=None, concurrency=4); it returns a dict keyed by normalized id and omits missing ids.
  • Retries are governed by an overridable BaseApiClient.is_retryable(response) (default: 429, 500, 502, 503, 504) and honor Retry-After, capped at max_retry_wait; the former lock-held buffer sleep and ignored Retry-After are gone.

Added

  • Sync twins generated from the async source (D-17): the I/O modules moved into the internal async package, and scripts/unasync.py generates the committed sync package plus sync test modules. The package root now also exports the sync base client and resource classes (renamed in the current release); sync twins work inside a running event loop because they never touch one.
  • Request-class limiter (D-19): BaseApiSettings.rate_limits declares requests-per-second per class (max_requests_per_second remains the rate of the "default" class), and BaseApiClient.rate_class(request) is the overridable hook that assigns a class per request. Each class gets its own minimum-interval gate; the concurrency bound is shared.
  • HeaderAuth(name, value) for static credential headers (Crossref Plus).
  • ClientCredentialsAuth sends a User-Agent on its token client (user_agent= parameter).
  • APIError.body: the parsed JSON error payload of error responses.
  • bibliofabric.ids: normalize_doi, is_doi, strip_url_prefix, normalize_orcid, normalize_ror, normalize_issn.
  • bibliofabric.paging: QueryDialect and Page[E].
  • QueryDialect.iterate_page_size: the page size iterate() uses when the caller passes none.
  • ResourceClient(client, path=...): per-instance paths for routes bound to a parent id, such as members/{id}/works.
  • Cursor iteration stops when the API returns the request cursor unchanged (Solr-style exhaustion).
  • SafeList now wraps a scalar string into [value] instead of a character list.
  • Default User-Agent built from package metadata: <package>/<version> (+<homepage>; mailto:<mailto>).
  • Debug logs redact api_key, token query parameters, and auth headers.
  • Tooling: uv_build backend, py.typed shipped, exact ty pin in the dev group, ruff linting src and tests, Keep a Changelog file, and a CI workflow with concurrency cancellation, least-privilege permissions, and tag-triggered trusted publishing.

[0.5.2]

Fixed

  • Raise NotFoundError for model-backed requests that receive a 404 response.
  • Redact query credentials such as api_key from request and exception logging.
  • Add opt-in validation-failure hooks carrying the raw response body or rejected resource record and the validation exception.
  • Add raw=True passthrough support to BaseApiClient.request() and resource get()/search() calls.