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.

DESCRIPTION.rst 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. =====================================================================
  2. Python AMQP 0.9.1 client library
  3. =====================================================================
  4. :Version: 1.4.9
  5. :Web: http://amqp.readthedocs.org/
  6. :Download: http://pypi.python.org/pypi/amqp/
  7. :Source: http://github.com/celery/py-amqp/
  8. :Keywords: amqp, rabbitmq
  9. About
  10. =====
  11. This is a fork of amqplib_ which was originally written by Barry Pederson.
  12. It is maintained by the Celery_ project, and used by `kombu`_ as a pure python
  13. alternative when `librabbitmq`_ is not available.
  14. This library should be API compatible with `librabbitmq`_.
  15. .. _amqplib: http://pypi.python.org/pypi/amqplib
  16. .. _Celery: http://celeryproject.org/
  17. .. _kombu: http://kombu.readthedocs.org/
  18. .. _librabbitmq: http://pypi.python.org/pypi/librabbitmq
  19. Differences from `amqplib`_
  20. ===========================
  21. - Supports draining events from multiple channels (``Connection.drain_events``)
  22. - Support for timeouts
  23. - Channels are restored after channel error, instead of having to close the
  24. connection.
  25. - Support for heartbeats
  26. - ``Connection.heartbeat_tick(rate=2)`` must called at regular intervals
  27. (half of the heartbeat value if rate is 2).
  28. - Or some other scheme by using ``Connection.send_heartbeat``.
  29. - Supports RabbitMQ extensions:
  30. - Consumer Cancel Notifications
  31. - by default a cancel results in ``ChannelError`` being raised
  32. - but not if a ``on_cancel`` callback is passed to ``basic_consume``.
  33. - Publisher confirms
  34. - ``Channel.confirm_select()`` enables publisher confirms.
  35. - ``Channel.events['basic_ack'].append(my_callback)`` adds a callback
  36. to be called when a message is confirmed. This callback is then
  37. called with the signature ``(delivery_tag, multiple)``.
  38. - Exchange-to-exchange bindings: ``exchange_bind`` / ``exchange_unbind``.
  39. - ``Channel.confirm_select()`` enables publisher confirms.
  40. - ``Channel.events['basic_ack'].append(my_callback)`` adds a callback
  41. to be called when a message is confirmed. This callback is then
  42. called with the signature ``(delivery_tag, multiple)``.
  43. - Support for ``basic_return``
  44. - Uses AMQP 0-9-1 instead of 0-8.
  45. - ``Channel.access_request`` and ``ticket`` arguments to methods
  46. **removed**.
  47. - Supports the ``arguments`` argument to ``basic_consume``.
  48. - ``internal`` argument to ``exchange_declare`` removed.
  49. - ``auto_delete`` argument to ``exchange_declare`` deprecated
  50. - ``insist`` argument to ``Connection`` removed.
  51. - ``Channel.alerts`` has been removed.
  52. - Support for ``Channel.basic_recover_async``.
  53. - ``Channel.basic_recover`` deprecated.
  54. - Exceptions renamed to have idiomatic names:
  55. - ``AMQPException`` -> ``AMQPError``
  56. - ``AMQPConnectionException`` -> ConnectionError``
  57. - ``AMQPChannelException`` -> ChannelError``
  58. - ``Connection.known_hosts`` removed.
  59. - ``Connection`` no longer supports redirects.
  60. - ``exchange`` argument to ``queue_bind`` can now be empty
  61. to use the "default exchange".
  62. - Adds ``Connection.is_alive`` that tries to detect
  63. whether the connection can still be used.
  64. - Adds ``Connection.connection_errors`` and ``.channel_errors``,
  65. a list of recoverable errors.
  66. - Exposes the underlying socket as ``Connection.sock``.
  67. - Adds ``Channel.no_ack_consumers`` to keep track of consumer tags
  68. that set the no_ack flag.
  69. - Slightly better at error recovery
  70. Further
  71. =======
  72. - Differences between AMQP 0.8 and 0.9.1
  73. http://www.rabbitmq.com/amqp-0-8-to-0-9-1.html
  74. - AMQP 0.9.1 Quick Reference
  75. http://www.rabbitmq.com/amqp-0-9-1-quickref.html
  76. - RabbitMQ Extensions
  77. http://www.rabbitmq.com/extensions.html
  78. - For more information about AMQP, visit
  79. http://www.amqp.org
  80. - For other Python client libraries see:
  81. http://www.rabbitmq.com/devtools.html#python-dev
  82. .. image:: https://d2weczhvl823v0.cloudfront.net/celery/celery/trend.png
  83. :alt: Bitdeli badge
  84. :target: https://bitdeli.com/free