There are two levels of abstraction - AMPQ API and python API.
AQMP API is higlevel API, where you send some structure, something happens in magick box and you get back another structure.
Python API is just collection of “lowlevel” python wrappers over ClamAV.
AMQP interface used by edeposit.amqp package.
- antivirus.reactToAMQPMessage(message, send_back)¶
- message (object) – One of the request objects defined in structures.
- send_back (fn reference) – Reference to function for responding. This is useful for progress monitoring for example. Function takes one parameter, which may be response structure/namedtuple, or string or whatever would be normally returned.
Response class from structures.
ValueError – if bad type of message structure is given.
All AMQP communication structures can be found in structures submodule.