Registry / communication / fedora-messaging

fedora-messaging

JSON →
library3.9.0pypypi✓ verified 86d ago

A set of tools for using Fedora's messaging infrastructure, based on RabbitMQ and AMQP. Current version 3.9.0, updated frequently with releases every few months.

pip install fedora-messaging
INSTALL
IMPORT
SIG · FEDORA-MESSAGING
F
fedora-messaging
communicationpythonv3.9.0
Install
7.0s avg
Import
105ms
Disk
81MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.9.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.112s · 78.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 7.0s · import 0.098s · 78MB
81MB installed
● package 81MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

twisted
from fedora_messaging import twisted
import fedora_messaging.twisted
Submodules must be imported explicitly; direct import may fail.
connect
from fedora_messaging.api import connect
from fedora_messaging import connect
connect() is in the api submodule, not top-level.

Basic consumer setup. Ensure RabbitMQ is running.

from fedora_messaging import config from fedora_messaging.api import connect, consume # Configure connection config.conf['amqp_url'] = 'amqp://guest:guest@localhost:5672/%2F' # Define a callback def callback(message): print(f"Received: {message.body}") # Consume a queue with connect() as connection: consume(connection, callback, queue='my_queue')
fedora-messaging --version
Debug
Known issues
breakingVersion 3.0 removed the 'fedora_messaging.twisted.service' module; use 'fedora_messaging.twisted.service_factory' instead.
fix
Replace imports of fedora_messaging.twisted.service with fedora_messaging.twisted.service_factory.
affects: >=3.0.0
deprecatedThe 'fedora_messaging.message.Message' class is deprecated in favor of schema-based messages. Use 'from fedora_messaging.message import Message' will still work but emit a deprecation warning.
fix
Use fedora_messaging.schema.Message or define custom messages via schema.
affects: >=3.5.0
gotchaThe configuration file must be loaded before any other imports or calls. Calling config.setup() is not enough; use config.conf to set options directly.
fix
Set config.conf['key'] = value before importing other modules that use configuration.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'fedora_messaging.twisted'
The 'twisted' extra is not installed. The twisted submodule requires optional dependencies.
fix
pip install fedora-messaging[twisted]
KeyError: 'amqp_url'
Configuration was not set before calling connect().
fix
Set config.conf['amqp_url'] = 'your_url' before calling connect().
Upgrade
Version history
3.9.0latest on PyPI · released Nov 12, 2025
Audit
Dependencies
pikarequiredAMQP library for RabbitMQ communication
jsonschemarequiredMessage schema validation
Agent activity
27 hits · last 30 days
node
24
Amazon
1
OpenAI (training)
1
Resources
fedora-messaging — pip install fedora-messaging · libregistry