Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

py_clamav-1.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file py_clamav-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: py_clamav-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for py_clamav-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d42dabf0d1cba1ecc7ef6ba4a2ca7eb38edd841ba8c161fc86071b8055f38be
MD5 2d62fbdbcca23f9b1667a5556ea9b3da
BLAKE2b-256 7009a51d40d7231c9fd5d71891d7728c1b16fc1a020c4b18edda18eba90ed5c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page