Skip to main content

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

Metadata

Release files for python-mollusc 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-mollusc 1.0.3
File Size Uploaded Provenance Actions
python-mollusc-1.0.3.tar.gz 8.8 kB Without provenance Details for python-mollusc-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-mollusc 1.0.3
File Interpreter ABI Platform Actions
python_mollusc-1.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details for python_mollusc-1.0.3-py2.py3-none-any.whl

Total release size: 13.6 kB

Release files / python-mollusc-1.0.3.tar.gz

Download URL python-mollusc-1.0.3.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1f5b94d9f9aecb92eee681e5bc1f1cafeacc8236540eeac61c3101c016a6302c
BLAKE2b-256 checksum
How to use checksums
0094b0c129eb5369cee75738ef59c5dc730ec05642a6c74f98960050fd93cadb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Release files / python_mollusc-1.0.3-py2.py3-none-any.whl

Download URL python_mollusc-1.0.3-py2.py3-none-any.whl
Size 4.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
80def4f9d855051204c91a228b4a306b6402fc9d333bebc874ce9214e282c242
BLAKE2b-256 checksum
How to use checksums
03aa2c25b0f2cbbe09b0ea982b84653ba502d414fb7e22af2fc7a6ff733cc3ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Security for python-mollusc 1.0.3

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.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page