hutch_python.load_conf.default_class_namespace

hutch_python.load_conf.default_class_namespace(cls, name, cache)

Create a class namespace and add it to the cache.

This is an internal utility function for load_conf.load_conf that creates an IterableNamespace, names it, gives it a shortened name, and then registers both names to the LoadCache if the namespace isn’t empty.

Parameters:
  • cls (type or str) – The class to use for the namespace

  • name (str) – The name of the namespace

  • cache (LoadCache)