Skip to main content

A Python client for Antivirus Microservice

Project description

antivirus-microservice

Antivirus Microservice Python Client

This is a python client for the free and fully functional Antivirus Microservice Server. It allows you to easily integrate virus scanning capabilities into your PHP applications.

Installation

...

Usage

Here's a basic example of how to use the Antivirus Microservice client:

if __name__ == "__main__":
    antivirus = AntivirusMicroservice()
    result = antivirus.check_file('path/to/your/file.txt')
    if result['ok']:
        print("File is clean")
    else:
        print(f"File is infected: {result['viruses']}")

Error Handling

The client handles basic errors:

  • If the file is not found, it returns ['ok' => false, 'viruses' => ['File not found']].
  • If there's an error communicating with the server, it returns ['ok' => false, 'viruses' => ['Error checking file']].

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open-sourced software licensed under the MIT license.

Support

If you encounter any problems or have questions, please open an issue in the project repository.

Created by

Dimitry Ivanov 2@ivanoff.org.ua # curl -A cv ivanoff.org.ua

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

antivirus-microservice-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

antivirus_microservice-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file antivirus-microservice-0.1.0.tar.gz.

File metadata

File hashes

Hashes for antivirus-microservice-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6ccbdff0d442f51ff2428440a181c189e10d1af9598654df7608c7ad8b78fa44
MD5 1ce19e739d91032843d779b7e3e175aa
BLAKE2b-256 b32843e05d2605618c77126bc09e86ad04cdb5a13585142828ec90f6ed03194a

See more details on using hashes here.

File details

Details for the file antivirus_microservice-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for antivirus_microservice-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f34d4339eac116197ecf274105a49c02659c36a17e8935e8da37e12047cbf4a2
MD5 1ca6f3647f9e35d605f2a693e94d4418
BLAKE2b-256 f730872cc2c2ea667462113724a61bb49ba11639b5906b5dc2086e8ec74e7eb0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page