This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

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

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")
Release History

Release History

1.0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
aioavast-1.0.1.tar.gz (3.0 kB) Copy SHA256 Checksum SHA256 Source Aug 12, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting