Một mục phía máy chủ trong kho dữ liệu GitHub của TopGit: celery/py-amqp, 315 sao, nhóm Backend, Python. amqplib fork
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This is a fork of amqplib_ which was originally written by Barry Pederson.
It is maintained by the Celery_ project, and used by kombu_ as a pure python
alternative when librabbitmq_ is not available.
This library should be API compatible with librabbitmq_.
Channel.events['basic_ack'].append(my_callback) adds a callback
to be called when a message is confirmed. This callback is then
called with the signature (delivery_tag, multiple).
Channel.events['basic_ack'].append(my_callback) adds a callback
to be called when a message is confirmed. This callback is then
called with the signature (delivery_tag, multiple).
Authentication Failure Notifications
Instead of just closing the connection abruptly on invalid
credentials, py-amqp will raise an AccessRefused error
when connected to rabbitmq-server 3.2.0 or greater.
Support for basic_return
Uses AMQP 0-9-1 instead of 0-8.
Channel.access_request and ticket arguments to methods
removed.
Supports the arguments argument to basic_consume.
internal argument to exchange_declare removed.
auto_delete argument to exchange_declare deprecated
insist argument to Connection removed.
Channel.alerts has been removed.
Support for Channel.basic_recover_async.
Channel.basic_recover deprecated.
Exceptions renamed to have idiomatic names:
AMQPException -> AMQPError
AMQPConnectionException -> ConnectionError``
AMQPChannelException -> ChannelError``
Connection.known_hosts removed.
Connection no longer supports redirects.
exchange argument to queue_bind can now be empty
to use the "default exchange".
Adds Connection.is_alive that tries to detect
whether the connection can still be used.
Adds Connection.connection_errors and .channel_errors,
a list of recoverable errors.
Exposes the underlying socket as Connection.sock.
Adds Channel.no_ack_consumers to keep track of consumer tags
that set the no_ack flag.
Slightly better at error recovery
Quick overview
Simple producer publishing messages to test queue using default exchange:
.. code:: python
import amqp
with amqp.Connection('broker.example.com') as c:
ch = c.channel()
ch.basic_publish(amqp.Message('Hello World'), routing_key='test')
Producer publishing to test_exchange exchange with publisher confirms enabled and using virtual_host test_vhost:
.. code:: python
import amqp
with amqp.Connection(
'broker.example.com', exchange='test_exchange',
confirm_publish=True, virtual_host='test_vhost'
) as c:
ch = c.channel()
ch.basic_publish(amqp.Message('Hello World'), routing_key='test')
Consumer with acknowledgments enabled:
.. code:: python
import amqp
with amqp.Connection('broker.example.com') as c:
ch = c.channel()
def on_message(message):
print('Received message (delivery tag: {}): {}'.format(message.delivery_tag, message.body))
ch.basic_ack(message.delivery_tag)
ch.basic_consume(queue='test', callback=on_message)
while True:
c.drain_events()
Consumer with acknowledgments disabled:
.. code:: python
import amqp
with amqp.Connection('broker.example.com') as c:
ch = c.channel()
def on_message(message):
print('Received message (delivery tag: {}): {}'.format(message.delivery_tag, message.body))
ch.basic_consume(queue='test', callback=on_message, no_ack=True)
while True:
c.drain_events()
Speedups
This library has experimental support of speedups. Speedups are implemented using Cython. To enable speedups, CELERY_ENABLE_SPEEDUPS environment variable must be set during building/installation.
Currently speedups can be installed:
The maintainers of py-amqp and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.
TopGit chưa ghi nhận license cho celery/py-amqp. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
celery/py-amqp có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho celery/py-amqp. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
celery/py-amqp là gì?
celery/py-amqp (celery/py-amqp) là dự án Python trên GitHub. Theo mô tả gốc: amqplib fork
Cùng nhóm Backend còn repo nào?
celery/py-amqp thuộc nhóm Backend trên TopGit, cùng 8 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về celery/py-amqp ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/celery/py-amqp là nguồn chính thức.
Vì sao celery/py-amqp được xếp vào nhóm Backend?
TopGit xếp celery/py-amqp vào nhóm Backend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "amqp", "amqp-client", "amqp-connection"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về py-amqp?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về py-amqp.