__init__.py 652 B

1234567891011121314151617181920
  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 load osarchiver.source whithout loading submodules
  6. """
  7. from osarchiver.common import backend_factory
  8. from osarchiver.destination.base import Destination
  9. def factory(*args, backend='db', **kwargs):
  10. """
  11. backend factory
  12. """
  13. return backend_factory(*args,
  14. backend=backend,
  15. module='osarchiver.destination',
  16. subclass=Destination,
  17. **kwargs)