pyClamd
pyClamd is a python interface to Clamd (Clamav daemon).
What it is and what it does
pyClamd is a client library that connects Python code to a ClamAV antivirus daemon (Clamd) running as a separate service. Instead of embedding ClamAV's library directly, it communicates with an already-running daemon process. The package has no runtime dependencies and was last released on 2017-08-27.
The library lets you scan files and streams for viruses by sending requests to the Clamd service and receiving scan results. Because it depends on an external daemon rather than Python dependencies, the main installation friction comes from needing to set up and maintain a separate ClamAV service, not from Python package conflicts.
Use it for:
- Add virus scanning to a web application by connecting to a centralized Clamd service
- Scan uploaded files in a document management system before processing
- Monitor and quarantine suspicious files in a file-sharing or backup system
- Integrate antivirus checks into a Python application where direct libclamav linking is not permitted
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
pyClamd provides a Python interface to the Clamd daemon, enabling virus detection in Python applications by communicating with a running ClamAV service.
No. The package is abandoned with no updates since 2017-08-27, and Python version support is unspecified. While it has no known vulnerabilities and no runtime dependencies, the lack of maintenance combined with high install friction and copyleft licensing makes it unsuitable for new projects. Consider maintained alternatives if antivirus scanning is critical.
Install
pyclamd on PyPI
pip
pip install pyclamduv
uv add pyclamdpoetry
poetry add pyclamdInstalling pyClamd
Before you install
Installation friction is high: the package has not been updated since 2017-08-27 and is marked as abandoned. It requires a separately installed and running Clamd daemon, adding operational complexity beyond the Python install itself.
License in practice
Licensed under GNU Lesser General Public License v3 or later (LGPLv3+), a copyleft license. Derivative works and linked code must be made available under compatible terms, which may restrict use in closed-source projects unless carefully isolated.
Quickstart
import pyClamd
clamd = pyClamd.ClamdNetworkSocket()
if clamd.ping():
result = clamd.scan_file('/path/to/file')
Requires a running Clamd daemon service configured and accessible on the network or local socket before pyClamd can connect.
Verify before relying
- Whether the package works with modern Python versions (support unspecified in metadata)
- Current compatibility with recent ClamAV daemon versions
- Whether Clamd daemon installation and configuration steps are documented
Package facts
| License | License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+) (copyleft) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,274 days since the last release |
| First released | |
| Downloads | 293,584/month — #7,952 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyClamd-0.4.0-py2.7.egg; pyClamd-0.4.0-py3.4.egg; pyClamd-0.4.0.tar.gz
Keywords: python
Tags
More System packages
Provides a platform-independent file locking…
permissive · top 100 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
aiofileProvides asynchronous file I/O operations for…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
filetypeInfers file type and MIME type by examining…
permissive · top 1,000 on PyPI
coloredlogsAdds colored output to Python's standard…
permissive · top 1,000 on PyPI
clamdclamd is a Python interface to the ClamAV…
copyleft · top 5,000 on PyPI
cvdupdateDownloads and maintains a local ClamAV…
permissive · top 5,000 on PyPI
clamav-clientA Python client library for the ClamAV…
copyleft · top 15,000 on PyPI
vt-pyOfficial Python client for the VirusTotal REST…
permissive · top 15,000 on PyPI
pymavlinkPymavlink is a Python implementation of the…
copyleft · top 15,000 on PyPI
picklescanScans Python Pickle files and related…
permissive · top 15,000 on PyPI
virustotal3Provides a Python 3 client library for the…
unclear · top 15,000 on PyPI
daemonizeDaemonize provides a Python library for…
permissive · top 15,000 on PyPI
cysignalsProvides interrupt and signal handling…
copyleft · top 15,000 on PyPI
yara-xPython bindings for YARA-X, a pattern-matching…
permissive · top 15,000 on PyPI