Asyncio library for Avast Antivirus
asyncio (PEP 3156) Avast Linux support
Features
Scanning files and/or directories.
Checking URLs.
Exclude files from the scanning.
Get and set the list of enabled or disabled pack and flags.
Requirements
Python >= 3.3
License
aioavast is offered under the MIT license.
Source code
The latest developer version is available in a github repository: https://github.com/earada/aioavast
Getting started
Scanning
Scan a file and prints its output:
import asyncio
from aioavast import Avast
@asyncio.coroutine
def scan(item):
av = Avast()
yield from av.connect()
return (yield from av.scan(item))
if __name__ == '__main__':
loop = asyncio.get_event_loop()
results = loop.run_until_complete(scan('/bin/ls'))
print(results)
You can check an url too:
return (yield from av.checkurl('http://python.org'))
Exclude items
There is also a possibility to exclude certain files from being scanned.
import asyncio
from aioavast import Avast
@asyncio.coroutine
def dont_scan(item):
av = Avast()
yield from av.connect()
yield from av.exclude(item)
return (yield from av.scan(item))
if __name__ == '__main__':
loop = asyncio.get_event_loop()
results = loop.run_until_complete(scan('/bin/ls'))
print(results)
You can retrieve excluded items by:
excluded = yield from av.exclude()
Other methods
You could modify Flags and Packs too.
flags = yield from av.flags()
yield from av.flags("-allfiles")
packs = yield from av.pack()
yield from av.flags("-ole")
Metadata
Release files for aioavast 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aioavast-1.0.1.tar.gz | 3.0 kB | Without provenance | Details |
Release files / aioavast-1.0.1.tar.gz
| Download URL | aioavast-1.0.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14839faa2b08b2e6ce985c09192a3191496c20a268b3c226405f0b507a269698
|
|
BLAKE2b-256 checksum How to use checksums |
d927544a02e1bda34f6afc86a15122711dca37064a2617baaa13fc41331bf66e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for aioavast 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.