{"id":21829,"library":"python-qpid-proton","title":"python-qpid-proton","description":"An AMQP based messaging library providing a high-level API for AMQP 1.0 messaging. Current version is 0.40.0. Release cadence is irregular, with occasional major or minor releases.","status":"active","version":"0.40.0","language":"python","source_language":"en","source_url":"https://github.com/apache/qpid-proton","tags":["amqp","messaging","qpid","proton"],"install":[{"cmd":"pip install python-qpid-proton","lang":"bash","label":"Default install from PyPI"}],"dependencies":[],"imports":[{"note":"Top-level package is 'proton', not 'qpid.proton'","wrong":"import qpid.proton","symbol":"Messenger","correct":"from proton import Messenger"},{"note":"Wrong module path","wrong":"from qpid.proton import Message","symbol":"Message","correct":"from proton import Message"}],"quickstart":{"code":"from proton import Messenger, Message\n\nmessenger = Messenger()\nmessenger.start()\n\nmsg = Message(body=\"Hello world\")\nmessenger.put(\"amqp://0.0.0.0:5672/myqueue\", msg)\nmessenger.send()\n\nmessenger.stop()","lang":"python","description":"Creates a Messenger, sends a message to an AMQP queue. Ensure an AMQP broker is running."},"warnings":[{"fix":"Upgrade to Python 3.6+ and update code to use non-blocking patterns if using old synchronous Messenger API.","message":"In version 0.40.0, the library dropped support for Python 2. Also, the API changed from blocking to non-blocking I/O in some components.","severity":"breaking","affected_versions":">=0.40.0"},{"fix":"Always import from 'proton' after installing 'python-qpid-proton'. Verify via 'pip list'.","message":"The 'proton' module name clashes with other packages (e.g., Proton VPN). Ensure correct installation and import.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using 'proton.reactor.Container' or 'proton.handlers' for modern AMQP handling.","message":"The 'Messenger' API is considered legacy in AMQP 1.0; use the 'proton.reactor' for newer applications.","severity":"deprecated","affected_versions":">=0.30.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use 'from proton import Messenger' instead of 'import qpid.proton'.","cause":"Incorrect import path; top-level package is 'proton'.","error":"ModuleNotFoundError: No module named 'qpid'"},{"fix":"Check version; if >=0.40.0, use 'proton.reactor' or 'proton.handlers' instead.","cause":"Messenger class was removed or renamed in newer versions.","error":"AttributeError: module 'proton' has no attribute 'Messenger'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}