Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. """Low-level AMQP client for Python (fork of amqplib)"""
  2. # Copyright (C) 2007-2008 Barry Pederson <bp@barryp.org>
  3. #
  4. # This library is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU Lesser General Public
  6. # License as published by the Free Software Foundation; either
  7. # version 2.1 of the License, or (at your option) any later version.
  8. #
  9. # This library is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. # Lesser General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Lesser General Public
  15. # License along with this library; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
  17. from __future__ import absolute_import
  18. VERSION = (1, 4, 9)
  19. __version__ = '.'.join(map(str, VERSION[0:3])) + ''.join(VERSION[3:])
  20. __author__ = 'Barry Pederson'
  21. __maintainer__ = 'Ask Solem'
  22. __contact__ = 'pyamqp@celeryproject.org'
  23. __homepage__ = 'http://github.com/celery/py-amqp'
  24. __docformat__ = 'restructuredtext'
  25. # -eof meta-
  26. #
  27. # Pull in the public items from the various sub-modules
  28. #
  29. from .basic_message import Message # noqa
  30. from .channel import Channel # noqa
  31. from .connection import Connection # noqa
  32. from .exceptions import ( # noqa
  33. AMQPError,
  34. ConnectionError,
  35. RecoverableConnectionError,
  36. IrrecoverableConnectionError,
  37. ChannelError,
  38. RecoverableChannelError,
  39. IrrecoverableChannelError,
  40. ConsumerCancelled,
  41. ContentTooLarge,
  42. NoConsumers,
  43. ConnectionForced,
  44. InvalidPath,
  45. AccessRefused,
  46. NotFound,
  47. ResourceLocked,
  48. PreconditionFailed,
  49. FrameError,
  50. FrameSyntaxError,
  51. InvalidCommand,
  52. ChannelNotOpen,
  53. UnexpectedFrame,
  54. ResourceError,
  55. NotAllowed,
  56. AMQPNotImplementedError,
  57. InternalError,
  58. error_for_code,
  59. __all__ as _all_exceptions,
  60. )
  61. from .utils import promise # noqa
  62. __all__ = [
  63. 'Connection',
  64. 'Channel',
  65. 'Message',
  66. ] + _all_exceptions