{ "info": { "author": "Gavin M. Roy", "author_email": "gavinmroy@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: Jython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Communications", "Topic :: Internet", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Networking" ], "description": "Pika\n====\nPika is a RabbitMQ (AMQP-0-9-1) client library for Python.\n\n|Version| |Python versions| |Status| |Coverage| |License| |Docs|\n\nIntroduction\n-------------\nPika is a pure-Python implementation of the AMQP 0-9-1 protocol including RabbitMQ's\nextensions.\n\n- Python 2.7 and 3.4+ are supported.\n\n- Since threads aren't appropriate to every situation, it doesn't\n require threads. It takes care not to forbid them, either. The same\n goes for greenlets, callbacks, continuations and generators. It is\n not necessarily thread-safe however, and your mileage will vary.\n\n- People may be using direct sockets, plain old `select()`,\n or any of the wide variety of ways of getting network events to and from a\n python application. Pika tries to stay compatible with all of these, and to\n make adapting it to a new environment as simple as possible.\n\nDocumentation\n-------------\nPika's documentation can be found at `https://pika.readthedocs.io `_\n\nExample\n-------\nHere is the most simple example of use, sending a message with the BlockingConnection adapter:\n\n.. code :: python\n\n import pika\n connection = pika.BlockingConnection()\n channel = connection.channel()\n channel.basic_publish(exchange='example',\n routing_key='test',\n body='Test Message')\n connection.close()\n\nAnd an example of writing a blocking consumer:\n\n.. code :: python\n\n import pika\n connection = pika.BlockingConnection()\n channel = connection.channel()\n\n for method_frame, properties, body in channel.consume('test'):\n\n # Display the message parts and ack the message\n print(method_frame, properties, body)\n channel.basic_ack(method_frame.delivery_tag)\n\n # Escape out of the loop after 10 messages\n if method_frame.delivery_tag == 10:\n break\n\n # Cancel the consumer and return any pending messages\n requeued_messages = channel.cancel()\n print('Requeued %i messages' % requeued_messages)\n connection.close()\n\nPika provides the following adapters\n------------------------------------\n\n- AsyncioConnection - adapter for the Python3 AsyncIO event loop\n- BlockingConnection - enables blocking, synchronous operation on top of library for simple uses\n- SelectConnection - fast asynchronous adapter\n- TornadoConnection - adapter for use with the Tornado IO Loop http://tornadoweb.org\n- TwistedConnection - adapter for use with the Twisted asynchronous package http://twistedmatrix.com/\n\nContributing\n------------\nTo contribute to pika, please make sure that any new features or changes\nto existing functionality **include test coverage**.\n\n*Pull requests that add or change code without coverage will most likely be rejected.*\n\nAdditionally, please format your code using `yapf `_\nwith ``google`` style prior to issuing your pull request.\n\n.. |Version| image:: https://img.shields.io/pypi/v/pika.svg?\n :target: http://badge.fury.io/py/pika\n\n.. |Python versions| image:: https://img.shields.io/pypi/pyversions/pika.svg\n :target: https://pypi.python.org/pypi/pika\n\n.. |Status| image:: https://img.shields.io/travis/pika/pika.svg?\n :target: https://travis-ci.org/pika/pika\n\n.. |Coverage| image:: https://img.shields.io/codecov/c/github/pika/pika.svg?\n :target: https://codecov.io/github/pika/pika?branch=master\n\n.. |License| image:: https://img.shields.io/pypi/l/pika.svg?\n :target: https://pika.readthedocs.io\n\n.. |Docs| image:: https://readthedocs.org/projects/pika/badge/?version=stable\n :target: https://pika.readthedocs.io\n :alt: Documentation Status\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://pika.readthedocs.io", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "pika-dev", "package_url": "https://pypi.org/project/pika-dev/", "platform": "", "project_url": "https://pypi.org/project/pika-dev/", "project_urls": { "Homepage": "https://pika.readthedocs.io" }, "release_url": "https://pypi.org/project/pika-dev/1.0.0b1.dev1/", "requires_dist": null, "requires_python": "", "summary": "Pika Python AMQP Client Library", "version": "1.0.0b1.dev1" }, "last_serial": 3698008, "releases": { "1.0.0b1.dev1": [ { "comment_text": "", "digests": { "md5": "c0672c3d09240f66d5211ca13432b0dc", "sha256": "33363fa46a404c47889a463e70b059d5d438588b53ef052ff46a6be59a0d5d6a" }, "downloads": -1, "filename": "pika_dev-1.0.0b1.dev1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c0672c3d09240f66d5211ca13432b0dc", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 111056, "upload_time": "2018-03-23T08:48:51", "url": "https://files.pythonhosted.org/packages/02/8a/d38491ddc2ef19358b96d4b301882b1934749de021c2c4f5348de06bf794/pika_dev-1.0.0b1.dev1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2d131a12e01f68f649f61a89a97427a2", "sha256": "526de5d34f338deb0d2c71c4ea8a9875c72d598d65a62397f6dc7022f3902bcb" }, "downloads": -1, "filename": "pika-dev-1.0.0b1.dev1.tar.gz", "has_sig": false, "md5_digest": "2d131a12e01f68f649f61a89a97427a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 101470, "upload_time": "2018-03-23T08:48:47", "url": "https://files.pythonhosted.org/packages/2d/68/61916ac5afb7f21391e66b51337a70dc2f6c1479650710197a07aaafcbe5/pika-dev-1.0.0b1.dev1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c0672c3d09240f66d5211ca13432b0dc", "sha256": "33363fa46a404c47889a463e70b059d5d438588b53ef052ff46a6be59a0d5d6a" }, "downloads": -1, "filename": "pika_dev-1.0.0b1.dev1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c0672c3d09240f66d5211ca13432b0dc", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 111056, "upload_time": "2018-03-23T08:48:51", "url": "https://files.pythonhosted.org/packages/02/8a/d38491ddc2ef19358b96d4b301882b1934749de021c2c4f5348de06bf794/pika_dev-1.0.0b1.dev1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2d131a12e01f68f649f61a89a97427a2", "sha256": "526de5d34f338deb0d2c71c4ea8a9875c72d598d65a62397f6dc7022f3902bcb" }, "downloads": -1, "filename": "pika-dev-1.0.0b1.dev1.tar.gz", "has_sig": false, "md5_digest": "2d131a12e01f68f649f61a89a97427a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 101470, "upload_time": "2018-03-23T08:48:47", "url": "https://files.pythonhosted.org/packages/2d/68/61916ac5afb7f21391e66b51337a70dc2f6c1479650710197a07aaafcbe5/pika-dev-1.0.0b1.dev1.tar.gz" } ] }