Python clamd client (fork of python-clamd)
Project description
About
python-mollusc is a portable Python module to use the ClamAV anti-virus engine on Windows, Linux, MacOSX and other platforms. It requires a running instance of the clamd daemon.
This is a fork of https://github.com/graingert/python-clamd
Usage
To use with a unix socket:
>>> import clamd >>> cd = clamd.ClamdUnixSocket() >>> cd.ping() 'PONG' >>> cd.version() # doctest: +ELLIPSIS 'ClamAV ... >>> cd.reload() 'RELOADING'
To scan a file:
>>> open('/tmp/EICAR','wb').write(clamd.EICAR) >>> cd.scan('/tmp/EICAR') {'/tmp/EICAR': ('FOUND', 'Eicar-Test-Signature')}
To scan a stream:
>>> from io import BytesIO >>> cd.instream(BytesIO(clamd.EICAR)) {'stream': ('FOUND', 'Eicar-Test-Signature')}
License
python-mollusc is released as open-source software under the LGPL license.
clamd Install
How to install the ClamAV daemon clamd under Ubuntu:
sudo apt-get install clamav-daemon clamav-freshclam clamav-unofficial-sigs sudo freshclam sudo service clamav-daemon start
Changes
1.0.3
Make it work with gevent
1.0.2 (2014-08-21)
Remove all dependencies. clamd is now standalone!
Use plain setuptools no d2to1.
Create universal wheel.
1.0.1 (2013-03-06)
Updated d2to1 dependency
1.0.0 (2013-02-08)
Change public interface, including exceptions
Support Python 3.3, withdraw 2.5 support
0.3.4 (2013-02-01)
Use regex to parse file status reponse instead of complicated string split/join
0.3.3 (2013-01-28)
First version of clamd that can be installed from PyPI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for python_mollusc-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80def4f9d855051204c91a228b4a306b6402fc9d333bebc874ce9214e282c242 |
|
MD5 | 334f3b1b470f577331beb889180f3ea4 |
|
BLAKE2b-256 | 03aa2c25b0f2cbbe09b0ea982b84653ba502d414fb7e22af2fc7a6ff733cc3ae |