2degrees/pyclamdplus — pull request #1 by atomicbob (2012-04-23 15:42:05+00:00)
Title: Added INSTREAM support

I was having issues getting permissions right for clamd to read files created by my regular user account. I noticed that the original pyclamd had STREAM support which would work for my use cases. I added this functionality, but noted that STREAM is now deprecated (http://linux.die.net/man/8/clamd) in favor of the INSTREAM method. I added two methods using this, one which takes an open file handle and the other just scans a buffer in memory. The one I am actually using right now is scan_buffer.

I also moved code in common between this and existing methods to a helper function, _complete_scan.