Skip to content

Migrating from the standalone packages

bibliofabric 0.9.0 replaces the packages aireloom, aletheca, and stavrophora. Their clients ship inside bibliofabric as subpackages named after the source, together with thirteen clients that never had a package of their own. You install one package and import the client you need.

Install

uv remove aireloom aletheca stavrophora
uv add bibliofabric

The last versions of the old packages (aireloom 0.9.1, aletheca 0.5.1, stavrophora 0.5.0) stay on PyPI but receive no further updates.

Imports

Every import moves from the old package to bibliofabric.<module>:

Old import New import Source
aireloom bibliofabric.openaire OpenAIRE
aletheca bibliofabric.openalex OpenAlex
stavrophora bibliofabric.crossref Crossref
# before
from aletheca import AlethecaClient

# after
from bibliofabric.openalex import OpenAlexClient

Model, filter, and resource names that already carried the source name stay the same (Work, WorksFilters, ResearchProduct). Names that carried the old package name take the source name instead:

Old New
AireloomClient, AireloomSyncClient, AireloomSettings OpenAireClient, OpenAireSyncClient, OpenAireSettings
AlethecaClient, AlethecaSyncClient, AlethecaSettings OpenAlexClient, OpenAlexSyncClient, OpenAlexSettings
StavrophoraClient, StavrophoraSyncClient, StavrophoraSettings CrossrefClient, CrossrefSyncClient, CrossrefSettings

Names inside the packages follow the same rule, for example aletheca.unwrapper.AlethecaUnwrapper is now bibliofabric.openalex.unwrapper.OpenAlexUnwrapper.

Only bibliofabric.__version__ exists. aletheca.__version__ and stavrophora.__version__ have no replacement in the client subpackages.

Settings and environment variables

Settings classes keep their fields, with three exceptions, and read environment variables under the prefix of the source:

Old prefix New prefix Example
AIRELOOM_ OPENAIRE_ AIRELOOM_MAX_REQUESTS_PER_SECOND becomes OPENAIRE_MAX_REQUESTS_PER_SECOND
ALETHECA_ OPENALEX_ ALETHECA_API_KEY becomes OPENALEX_API_KEY
STAVROPHORA_ CROSSREF_ STAVROPHORA_MAILTO becomes CROSSREF_MAILTO

The exceptions:

  • AireloomSettings fields openaire_client_id, openaire_client_secret, and openaire_refresh_token are client_id, client_secret, and refresh_token on OpenAireSettings. 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 no longer work.
  • CrossrefSettings.plus_token is hidden from repr(); the value is still readable on the attribute.

Behavior that changed

  • The default User-Agent names the client subpackage, for example bibliofabric.openalex/0.9.0, instead of the old package.
  • The Crossref beta Data Citation API resource takes page_size= instead of rows= in search() and iterate(), and iterate() accepts limit=, cursor=, on_error= / failures=, and on_page=. These changes were prepared for the next stavrophora release and ship here for the first time.

The core framework also changed in 0.9.0, for example download(), stricter validation of empty records, and credential stripping on cross-origin redirects. The 0.9.0 entry in the changelog lists these changes.