Skip to main content

Async API client for uncoverit.org

Project description

PIP

Installation

pip install uncoverit

Usage

from uncoverit import UncoveritClient
from uncoverit.exceptions import *

Fetching balance:

from uncoverit import UncoveritClient
async with await UncoveritClient.create(api_key) as client:
    print(f"Requests left: {client.requests_left}") # set and tracked internally
    print(f"Requests left: {await client.check_balance()}") # makes a http request to fetch the balance
    # prints "Requests left: 1000"

Checking if file exists (Upload function already does this:

from uncoverit import UncoveritClient
async with await UncoveritClient.create(api_key) as client:
    fetched_sample = await client.fetch_static_report("a9e6ea632d75dfd3fa741bhd3659ac5e1423533dfa71c64720d48837cf61fd73")
    # fetched_sample here is None

Uploading a file:

from uncoverit import UncoveritClient
async with await UncoveritClient.create(api_key) as client:
    # upload a file and get its analysis information
    uploaded_sample = await client.upload_sample("malware.exe")
    print(uploaded_sample.configs)
    print(uploaded_sample.tags)
    print(uploaded_sample.sha1)
    print(uploaded_sample.ssdeep)
    print(uploaded_sample.md5)

Fetching a static analysis report:

from uncoverit import UncoveritClient
async with await UncoveritClient.create(api_key) as client:
    fetched_sample = await client.fetch_static_report("e9e6ea632d75dfd3fa741b4d3659ac5e1423533dfa71c64720d48837cf61fd73")
    print(fetched_sample.json_obj.get("configs")) # print the configs from the json object
    print(fetched_sample.configs) # or get it from the sample
    print(fetched_sample.duration) # static analysis duration

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

uncoverit-0.1.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

uncoverit-0.1.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file uncoverit-0.1.2.tar.gz.

File metadata

  • Download URL: uncoverit-0.1.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uncoverit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d9174b998bde7c6a36eb148d54d044dad86bcbfa7cff94e76b6b4ae888d7b250
MD5 4518c174f7dcde1ad980dedb4a3b331e
BLAKE2b-256 76dd028216c9b4bdd4a142fad0731e0eb19293b8c7df12ee1e161d28483dcc4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for uncoverit-0.1.2.tar.gz:

Publisher: publish-pypi.yml on Uncover-it/uncoverit-packages

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uncoverit-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: uncoverit-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uncoverit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e809e3b9357c521809f2e7d70f0f750a20d53921634d94bc64a7124eba37f949
MD5 55b6cae82559450cb3f7b9ac19b187ae
BLAKE2b-256 0c21083dcd1f3dd48c6951b73fc7739d13c77b5e733bb0edd8d31fce9853d1d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for uncoverit-0.1.2-py3-none-any.whl:

Publisher: publish-pypi.yml on Uncover-it/uncoverit-packages

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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