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)
Metadata
Release files for py-clamav 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_clamav-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / py_clamav-1.0.1-py3-none-any.whl
| Download URL | py_clamav-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d42dabf0d1cba1ecc7ef6ba4a2ca7eb38edd841ba8c161fc86071b8055f38be
|
|
BLAKE2b-256 checksum How to use checksums |
7009a51d40d7231c9fd5d71891d7728c1b16fc1a020c4b18edda18eba90ed5c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|