__init__.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # -*- coding: utf-8 -*-
  2. """Distributed Task Queue"""
  3. # :copyright: (c) 2009 - 2012 Ask Solem and individual contributors,
  4. # All rights reserved.
  5. # :copyright: (c) 2012 VMware, Inc., All rights reserved.
  6. # :license: BSD (3 Clause), see LICENSE for more details.
  7. from __future__ import absolute_import
  8. SERIES = 'Chiastic Slide'
  9. VERSION = (3, 0, 5)
  10. __version__ = '.'.join(map(str, VERSION[0:3])) + ''.join(VERSION[3:])
  11. __author__ = 'Ask Solem'
  12. __contact__ = 'ask@celeryproject.org'
  13. __homepage__ = 'http://celeryproject.org'
  14. __docformat__ = 'restructuredtext'
  15. __all__ = [
  16. 'Celery', 'bugreport', 'shared_task', 'Task',
  17. 'current_app', 'current_task',
  18. 'chain', 'chord', 'chunks', 'group', 'subtask',
  19. 'xmap', 'xstarmap', 'uuid', 'VERSION', '__version__',
  20. ]
  21. VERSION_BANNER = '%s (%s)' % (__version__, SERIES)
  22. # This is for static analyzers
  23. Celery = None
  24. bugreport = None
  25. shared_task = None
  26. Task = None
  27. current_app = None
  28. current_task = None
  29. chain = None
  30. chord = None
  31. chunks = None
  32. group = None
  33. subtask = None
  34. xmap = None
  35. xstarmap = None
  36. uuid = None
  37. # -eof meta-
  38. # Lazy loading
  39. from .__compat__ import recreate_module
  40. old_module, new_module = recreate_module(__name__, # pragma: no cover
  41. by_module={
  42. 'celery.app': ['Celery', 'bugreport', 'shared_task'],
  43. 'celery.app.task': ['Task'],
  44. 'celery._state': ['current_app', 'current_task'],
  45. 'celery.canvas': ['chain', 'chord', 'chunks', 'group',
  46. 'subtask', 'xmap', 'xstarmap'],
  47. 'celery.utils': ['uuid'],
  48. },
  49. direct={'task': 'celery.task'},
  50. __package__='celery', __file__=__file__,
  51. __path__=__path__, __doc__=__doc__, __version__=__version__,
  52. __author__=__author__, __contact__=__contact__,
  53. __homepage__=__homepage__, __docformat__=__docformat__,
  54. VERSION=VERSION, SERIES=SERIES, VERSION_BANNER=VERSION_BANNER,
  55. )