Skip to main content

gdata-vaas is a Python library for the VaaS-API.

Project description

gdata-vaas

An SDK to easily utilize G DATA VaaS.

Verdict-as-a-Service (VaaS) is a service that provides a platform for scanning files for malware and other threats. It allows easy integration in your application. With a few lines of code, you can start scanning files for malware.

What does the SDK do?

It gives you as a developer a functions to talk to G DATA VaaS. It wraps away the complexity of the API into 3 basic functions.

for_sha256

If you calculate the sha256 for a file, you can request that sha256 against G DATA VaaS. It's the fastest way to get a verdict from our service.

for_url

If you want to request if a file behind a URL is safe, you can specify the URL as well. Depending on the file size, the duration for the analysis can vary.

for_file

You can also ask for a file itself. You will still get the benefit of a fast verdict via Sha256 because the SDK will do that for you first. But additionally, if we don't know the file, the file will get uploaded and (automatically) analyzed by us.

How to use

Installation

pip3 install gdata-vaas

Import

from vaas import Vaas, ClientCredentialsGrantAuthenticator

Request a verdict

Authentication & Initializing:

authenticator = ClientCredentialsGrantAuthenticator(
    CLIENT_ID,
    CLIENT_SECRET,
    TOKEN_URL,
    SSL_VERIFICATION
)

Verdict Request for SHA256:

async with Vaas() as vaas:
    await vaas.connect(await authenticator.get_token())
    sha256 = "275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f"
    verdict = await vaas.for_sha256(sha256)

Verdict Request for a file:

async with Vaas() as vaas:
    await vaas.connect(await authenticator.get_token())
    path = "/path/to/file"
    verdict = await vaas.for_file(path)

Verdict Request for a URL:

async with Vaas() as vaas:
    await vaas.connect(await authenticator.get_token())
    url = "https://www.gdatasoftware.com/oem/verdict-as-a-service"
    verdict = await vaas.for_url(url)

I'm interested in VaaS

You need credentials to use the service in your application. If you are interested in using VaaS, please contact us.

Developing with Visual Studio Code

Every single SDKs also includes Devcontainer. If you use the Visual Studio Code Dev Containers extension, you can run the code in a full-featured development environment.

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

gdata-vaas-4.2.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gdata_vaas-4.2.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file gdata-vaas-4.2.0.tar.gz.

File metadata

  • Download URL: gdata-vaas-4.2.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for gdata-vaas-4.2.0.tar.gz
Algorithm Hash digest
SHA256 9967b3b7c33e7db562ad9ba6b1f508d8b8881046eede8ff356a95549bb375fec
MD5 21c047162f968f414ccc047ec49886ae
BLAKE2b-256 801c2dbae5fe135a2a8c7efb4293f5376b719969b9c14c950590a4ef28ea2f63

See more details on using hashes here.

File details

Details for the file gdata_vaas-4.2.0-py3-none-any.whl.

File metadata

  • Download URL: gdata_vaas-4.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for gdata_vaas-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2818fcd4635bb71430a70d76ac486a5e8edc2253f988f8384d4434ea1712c93
MD5 0c3d1603381ca20cdde98082e207d210
BLAKE2b-256 9476a469be3676be23db4a804551a5360a2fefa29a56fe2c8cbe37c1c8e04f59

See more details on using hashes here.

Supported by

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