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:
AireloomSettingsfieldsopenaire_client_id,openaire_client_secret, andopenaire_refresh_tokenareclient_id,client_secret, andrefresh_tokenonOpenAireSettings. The environment names becomeOPENAIRE_CLIENT_ID,OPENAIRE_CLIENT_SECRET, andOPENAIRE_REFRESH_TOKEN.OpenAlexSettingsreads the key fromapi_keyandOPENALEX_API_KEYonly. Theopenalex_api_keyconstructor alias and theALETHECA_OPENALEX_API_KEYenvironment name no longer work.CrossrefSettings.plus_tokenis hidden fromrepr(); the value is still readable on the attribute.
Behavior that changed
- The default
User-Agentnames the client subpackage, for examplebibliofabric.openalex/0.9.0, instead of the old package. - The Crossref beta Data Citation API resource takes
page_size=instead ofrows=insearch()anditerate(), anditerate()acceptslimit=,cursor=,on_error=/failures=, andon_page=. These changes were prepared for the nextstavrophorarelease 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.