clamd
About
clamd 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 pyClamd v0.2.0 created by Philippe Lagadec and published on his website: http://www.decalage.info/en/python/pyclamd which in turn is a slightly improved version of pyClamd v0.1.1 created by Alexandre Norman and published on his website: http://xael.org/norman/python/pyclamd/
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 six import BytesIO
>>> cd.instream(BytesIO(clamd.EICAR))
{'stream': ('FOUND', 'Eicar-Test-Signature')}
License
clamd 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.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
Metadata
Release files for clamd 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clamd-1.0.2.tar.gz | 8.2 kB | Without provenance | Details for clamd-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clamd-1.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for clamd-1.0.2-py2.py3-none-any.whl |
Total release size: 14.9 kB
Release files / clamd-1.0.2.tar.gz
| Download URL | clamd-1.0.2.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d82a2fd814684a35a1b31feadafb2e69c8ebde9403613f6bdaa5d877c0f29560
|
|
BLAKE2b-256 checksum How to use checksums |
148b55332f1f79f28a5ccc50f66364087e64fae8e4ed62e52007ca82b3072221
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / clamd-1.0.2-py2.py3-none-any.whl
| Download URL | clamd-1.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5c32546b7d1eb00fd6be00a889d79e00fbf980ed082826ccfa369bce3dcff5e7
|
|
BLAKE2b-256 checksum How to use checksums |
3dd084614de2a53ad52370adc9f9260bea420e53e0c228a248ec0eacfa65ccbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for clamd 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.