This module provides wrapper for Calibre, to access it’s conversion functions using AMQP protocol.
Module provides only generic wrapper, not AMQP communication itself - that is handled by Calibredaemon from edeposit.amqp project.
Module is hosted at GitHub:
and can be installed using PIP:
pip install edeposit.amqp.calibre
List of available input formats.
List of available output formats.
This structure specifies details of AMQP message, which is passed to reactToAMQPMessage() as request for conversion.
Parameters: |
|
---|---|
Raises: | ValueError – if invalid input/output format is provided. |
Structure is returned as response from reactToAMQPMessage(), when the file is converted.
Parameters: |
|
---|
AMQP communication wrapper for calibre’s ebook-convert program.
React to given (AMQP) message. message is usually expected to be collections.namedtuple() structure filled with all necessary data.
Parameters: |
|
---|---|
Returns: | ConversionResponse – response filled with data about conversion and converted file. |
Raises: | ValueError – if bad type of message structure is given. |
It is possible to access module directly, by calling python functions to convert data. If you are interested in this way of accessing functuions, please look at: