Skip to content

Releases

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 09:45

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_datase...
Read more

v0.11.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 15:09

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.

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 22:26

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.

v0.9.1

Choose a tag to compare

@github-actions github-actions released this 29 Nov 18:05

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.

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 01:37

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_cli...
Read more

stavrophora-v0.5.1

Choose a tag to compare

@github-actions github-actions released this 29 Nov 01:40

Deprecated

  • stavrophora is discontinued. Its client ships as bibliofabric.crossref
    in bibliofabric 0.9.0 and later; see the
    migration guide.
    Importing stavrophora emits a FutureWarning that says so. This is the
    last release.

aletheca-v0.5.2

Choose a tag to compare

@github-actions github-actions released this 29 Nov 01:40

Deprecated

  • aletheca is discontinued. Its client ships as bibliofabric.openalex in
    bibliofabric 0.9.0 and later; see the
    migration guide.
    Importing aletheca emits a FutureWarning that says so. This is the last
    release.

aireloom-v0.9.2

Choose a tag to compare

@github-actions github-actions released this 29 Nov 01:39

Deprecated

  • aireloom is discontinued. Its client ships as bibliofabric.openaire in
    bibliofabric 0.9.0 and later; see the
    migration guide.
    Importing aireloom emits a FutureWarning that says so. This is the last
    release.

v0.8.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 04:01

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.

stavrophora-v0.5.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 04:03

Added

  • client.data_citations for the beta Crossref Data Citations API
    (/beta/datacitations): search() with the subject_id, object_id,
    member_id, relation, from_created_date, and until_created_date
    filters and 0-based page numbers, iterate(), and count(), with the
    DataCitation and DataCitationEnd models. The route runs in its own
    datacitations rate class at 3 requests per second.
  • Retraction helpers: Work.retractions (the updated-by entries of type
    retraction) and Work.is_retracted, and UpdateTo.record_id for the
    Retraction Watch record id that Crossref attaches to entries with
    source="retraction-watch".

Changed

  • Requires bibliofabric>=0.8,<0.9 (the workspace core is now 0.8.0).