''' libclamav example script. (c) 2006-2018 Jan ONDREJ (SAL) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ''' from __future__ import print_function import sys from libclamav import clamav c = clamav() print("Signatures:", c.virnum) print("Clamav version:", c.retver()) print("Virname:", c.scanfile(sys.argv[1]))