A Python client for Antivirus Microservice
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file antivirus-microservice-0.1.0.tar.gz
.
File metadata
- Download URL: antivirus-microservice-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ccbdff0d442f51ff2428440a181c189e10d1af9598654df7608c7ad8b78fa44 |
|
MD5 | 1ce19e739d91032843d779b7e3e175aa |
|
BLAKE2b-256 | b32843e05d2605618c77126bc09e86ad04cdb5a13585142828ec90f6ed03194a |
File details
Details for the file antivirus_microservice-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: antivirus_microservice-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f34d4339eac116197ecf274105a49c02659c36a17e8935e8da37e12047cbf4a2 |
|
MD5 | 1ca6f3647f9e35d605f2a693e94d4418 |
|
BLAKE2b-256 | f730872cc2c2ea667462113724a61bb49ba11639b5906b5dc2086e8ec74e7eb0 |