{"id":20673966,"url":"https://github.com/dmitriym09/py-clamav","last_synced_at":"2025-04-19T19:56:47.219Z","repository":{"id":62579296,"uuid":"254339679","full_name":"dmitriym09/py-clamav","owner":"dmitriym09","description":"LibClamAV ctypes binding","archived":false,"fork":false,"pushed_at":"2020-07-04T06:42:26.000Z","size":22,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T12:35:13.466Z","etag":null,"topics":["antivirus","clamav","libclamav","linux","python","python3","python38"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmitriym09.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-09T10:24:07.000Z","updated_at":"2024-05-20T08:33:41.000Z","dependencies_parsed_at":"2022-11-03T21:00:57.701Z","dependency_job_id":null,"html_url":"https://github.com/dmitriym09/py-clamav","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriym09%2Fpy-clamav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriym09%2Fpy-clamav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriym09%2Fpy-clamav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriym09%2Fpy-clamav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmitriym09","download_url":"https://codeload.github.com/dmitriym09/py-clamav/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248789365,"owners_count":21161819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["antivirus","clamav","libclamav","linux","python","python3","python38"],"created_at":"2024-11-16T20:43:09.356Z","updated_at":"2025-04-19T19:56:47.180Z","avatar_url":"https://github.com/dmitriym09.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-clamav\n\nLibClamAV ctypes binding\n\n## Docker\n\nCheck file by [docker container](https://hub.docker.com/r/dmitriym09/py-clamav)\n\n```bash\ndocker run --rm -it -v{path_to_file}:{path_to_file} dmitriym09/py-clamav python -m py_clamav {path_to_file}\n```\n\n## Install\n\n- install or [download](https://www.clamav.net/downloads) libclamv\n- `pip install py-clamav`\n\n## Using\n\n```python\nimport os\n\nfrom py_clamav import ClamAvScanner\n\nwith ClamAvScanner() as scanner:\n    # scan file by path\n    path_file = 'path/to/file'\n    infected, virname = scanner.scan_file(path_file)\n    \n    # scan file by fileno\n    fileno = os.memfd_create('testfile')\n    try:\n        os.write(fileno, b'data')\n        os.lseek(fileno, 0, 0)\n        infected, virname = scanner.scan_fileno(fileno)\n    finally:\n        os.close(fileno)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitriym09%2Fpy-clamav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmitriym09%2Fpy-clamav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitriym09%2Fpy-clamav/lists"}