LibClamAV ctypes binding
Project description
py-clamav
LibClamAV ctypes binding
Install
- install or download libclamv
pip install py-clamav
Using
import os
from py_clamav import ClamAvScanner
with ClamAvScanner() as scanner:
# scan file by path
path_file = 'path/to/file'
infected, virname = scanner.scan_file(path_file)
# scan file by fileno
fileno = os.memfd_create('testfile')
try:
os.write(fileno, b'data')
os.lseek(fileno, 0, 0)
infected, virname = scanner.scan_fileno(fileno)
finally:
os.close(fileno)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for py_clamav-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d42dabf0d1cba1ecc7ef6ba4a2ca7eb38edd841ba8c161fc86071b8055f38be |
|
MD5 | 2d62fbdbcca23f9b1667a5556ea9b3da |
|
BLAKE2b-256 | 7009a51d40d7231c9fd5d71891d7728c1b16fc1a020c4b18edda18eba90ed5c8 |