Calibre package

AMQP communication wrapper for calibre’s ebook-convert program.

edeposit.amqp.calibre.reactToAMQPMessage(message, UUID)[source]

React to given (AMQP) message. message is usually expected to be collections.namedtuple() structure filled with all necessary data.

Parameters:
  • message (*Request class) – only ConversionRequest class is supported right now
  • UUID (str) – unique ID of received message
Returns:

ConversionResponse – response filled with data about conversion and converted file.

Raises:

ValueError – if bad type of message structure is given.

Lowlevel access

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:

Table Of Contents

This Page