Skip to content

v1.9.0

Choose a tag to compare

@jeandet jeandet released this 03 Oct 21:59
· 272 commits to main since this release

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 / ALIASES on
    its class and decorates it with @register_provider. Adding one no longer means editing Speasy's
    core. Packages can ship providers through a speasy.providers entry point.
  • dir() on speasy and on the inventories lists every enabled provider, started or not.

Behavior changes

  • file is now a full alias of the archive provider: get_data("file/...") works,
    list_providers() includes it, and disabled_providers = file disables the archive.

  • speasy.amda and 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 speasy no longer contacts any web service or builds any
    inventory. The first get_data(), speasy.amda or speasy.inventories.tree.cda access
    starts that provider, so it takes longer. SPEASY_SKIP_INIT_PROVIDERS now 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__ (or vars()) only sees providers that have
    started. Use attribute access or dir(), 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

  • Start providers on first use by default by @jeandet in #393