Skip to content

Rework resource with resource providers

Valentin Valls requested to merge refactor-resources-as-providers into master

This merge request rework the resource loader to:

  • Use stream as much as possible (instead of path)
  • Path are still used for SSL files (but that's something which probably have to be discussed outside of this MR)
  • Create specialised resource providers to allow to create new ones

For that:

  • A package daiquiri.core.resources was created for the implementation
  • daiquiri.resources.utils still contain the root provider
  • YamlDict was created to replace ConfigDict
  • Every part of the application was updated with this new API

The aim is to be able to implement a Beacon resource provider at one point.

On side change:

  • daiquiri.app was moved into daiquiri.cli.server for consistency. daiquiri.app just contain a link for compatibility with stuffs already installed in beamlines.

Merge request reports

Loading