Catalog PyPI
Back to packageRELEASE DETAILS

1.0.1

PyPI

aioavast

Asyncio library for Avast antivirus

Published12 Aug 2015
Direct dependencies0
Transitive dependenciesNot calculated

README

Version 1.0.1 documentation
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
- asyncio https://pypi.python.org/pypi/asyncio


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:

.. code-block:: python

  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:

.. code-block:: python

  return (yield from av.checkurl('http://python.org'))


Exclude items
^^^^^^^^^^^^^

There is also a possibility to exclude certain files from being scanned.

.. code-block:: python

  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:

.. code-block:: python

  excluded = yield from av.exclude()


Other methods
^^^^^^^^^^^^^

You could modify Flags and Packs too.

.. code-block:: python

  flags = yield from av.flags()
  yield from av.flags("-allfiles")

  packs = yield from av.pack()
  yield from av.flags("-ole")

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
aioavast-1.0.1.tar.gz

sdist · 2.9 KB · Python source

Source file

Repository

PENDING
earada/aioavast

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:37 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:ef5b3645bc082d82ef4b8a5c469a67c514451db9cd01cc9899055fd907b98c04

Other collected versions

View all collected versions →