Repository navigation
v1.9.0
Bug fixes
- New data appended to an AMDA dataset (e.g. ACE) now shows up. Before, a request reaching past the end of
a dataset cached the missing part as empty, for good, because AMDA does not change a dataset's version
when it only appends data. Fragments past the end of a dataset's coverage are now kept for one hour only.
Empty AMDA fragments cached by Speasy 1.8.6 or older are fetched again once.
New features
- Data providers register themselves: a provider declares
NAME/ALIASESon
its class and decorates it with@register_provider. Adding one no longer means editing Speasy's
core. Packages can ship providers through aspeasy.providersentry point. dir()onspeasyand on the inventories lists every enabled provider, started or not.
Behavior changes
-
fileis now a full alias of thearchiveprovider:get_data("file/...")works,
list_providers()includes it, anddisabled_providers = filedisables the archive. -
speasy.amdaand the other provider attributes are no longer copied into the module namespace at
import. They always reflect the current provider, including after a successful
update_inventories()retry.vars(speasy)no longer lists them. -
Providers start on first use.
import speasyno longer contacts any web service or builds any
inventory. The firstget_data(),speasy.amdaorspeasy.inventories.tree.cdaaccess
starts that provider, so it takes longer.SPEASY_SKIP_INIT_PROVIDERSnow has no effect, and
update_inventories()still starts every enabled provider. -
list_providers()lists the enabled providers, started or not. A provider whose web service is
down is still listed. Using it raises an error that says it failed to start and how to retry. -
Code that walks
speasy.inventories.tree.__dict__(orvars()) only sees providers that have
started. Use attribute access ordir(), which start providers as needed. -
Initialize providers on first use when SPEASY_SKIP_INIT_PROVIDERS is set by @Beforerr in #389
-
Self-registering data providers and a speasy.providers entry point by @jeandet in #391