__init__.py 649 B

1234567891011121314151617181920212223
  1. # Use of this source code is governed by a BSD-style
  2. # license that can be found in the LICENSE file.
  3. # Copyright 2019 The OSArchiver Authors. All rights reserved.
  4. """
  5. init file that allow to import Source from osarchiver.source whithout loading
  6. submodules.
  7. """
  8. from osarchiver.common import backend_factory
  9. from osarchiver.source.base import Source
  10. def factory(*args, backend='db', **kwargs):
  11. """
  12. backend factory
  13. """
  14. return backend_factory(*args,
  15. backend=backend,
  16. module='osarchiver.source',
  17. subclass=Source,
  18. **kwargs)