Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Introduction

E-Deposit RabbitMQ module for anti-virus.

Examples

Anti-virus client

Python 2.7.3 (default, Jan  2 2013, 13:56:14)
>>> from edeposit.amqp.antivir import amqpav
>>> avc = amqpav.AVClient()
>>> avc
<amqpav.AVClient instance at 0x7f7414441050>
>>> message_id = avc.check_file('somefile.ogg')
Message sent.
>>> message_id
'13d80b64-b6ae-4bc2-a42b-4d341ff08499'
>>> result = avc.get_result(message_id)
>>> result
True
>>> print('File is clean: {}'.format(result))
File is clean: True
>>>

Anti-virus server

Python 2.7.3 (default, Jan  2 2013, 13:56:14)
>>> from edeposit.amqp.antivir import amqpav
>>> avs = amqpav.AVServer()
>>> avs
<edeposit.amqp.antivir.amqpav.AVServer instance at 0x22285f0>
>>> avs.run()
 * Message received
Message: AV Message: fbb4a3e8-b297-4cdb-81c2-1c48a4248d8f
Headers:
{   u'header1': u'test'}
Properties:
{   'app_id': u'antivirus',
    'application_headers': {   u'header1': u'test'},
    'content_encoding': u'binary',
    'content_type': u'application/octet-stream',
    'message_id': u'fbb4a3e8-b297-4cdb-81c2-1c48a4248d8f',
    'type': u'request'}
AV result: {'stream': 'Eicar-Test-Signature(69630e4574ec6798239b091cda43dca0:69)'}
 * Message received
Message: AV Message: e0a616f8-0958-4114-b0e9-ce75b5bc8184
Headers:
{   u'header1': u'test'}
Properties:
{   'app_id': u'antivirus',
    'application_headers': {   u'header1': u'test'},
    'content_encoding': u'binary',
    'content_type': u'application/octet-stream',
    'message_id': u'e0a616f8-0958-4114-b0e9-ce75b5bc8184',
    'type': u'request'}
AV result: {'stream': 'Eicar-Test-Signature(69630e4574ec6798239b091cda43dca0:69)'}

Changelog

0.1dev (unreleased)

  • Initial release

Release files for edeposit.amqp.antivir 0.1-alpha

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for edeposit.amqp.antivir 0.1-alpha
File Size Uploaded
edeposit.amqp.antivir-0.1-alpha.tar.gz 32.0 kB Details

Release files / edeposit.amqp.antivir-0.1-alpha.tar.gz

Download URL edeposit.amqp.antivir-0.1-alpha.tar.gz
Size 32.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8f62069ac2c1e9b7be3019962bed3d0f585be12bf1eb0e5fe0a8fc21cbdba59b
BLAKE2b-256 checksum
How to use checksums
da2b7aebb29ed9059d151fd96e810e9c910babb1187f1dc9512b1ff79869fb47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1-alpha This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page