__init__.py 745 B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. """Utility functions.
  3. Do not import from here directly anymore, as these are only
  4. here for backwards compatibility.
  5. """
  6. from .functional import memoize # noqa
  7. from .nodenames import worker_direct, nodename, nodesplit
  8. __all__ = ['worker_direct', 'gen_task_name', 'nodename', 'nodesplit',
  9. 'cached_property', 'uuid']
  10. # ------------------------------------------------------------------------ #
  11. # > XXX Compat
  12. from .imports import ( # noqa
  13. qualname as get_full_cls_name, symbol_by_name as get_cls_by_name,
  14. instantiate, import_from_cwd, gen_task_name,
  15. )
  16. from .functional import chunks, noop # noqa
  17. from kombu.utils import cached_property, uuid # noqa
  18. gen_unique_id = uuid