Scanner#

Convenient method to fillout an blacksmith registry.

import blacksmith
blacksmith.scan('mypkg.resources', 'other.resources')
blacksmith.domain.scanner.scan(*modules: str) None#

Collect all resources to fillout the registry.

Basically, it import modules registered using blacksmith.register().

Raises
  • TypeError – malformed module name

  • ModuleNotFoundError – unknown package name

  • AttributeError – argument is a module, not a package.