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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9174b998bde7c6a36eb148d54d044dad86bcbfa7cff94e76b6b4ae888d7b250
|
|
| MD5 |
4518c174f7dcde1ad980dedb4a3b331e
|
|
| BLAKE2b-256 |
76dd028216c9b4bdd4a142fad0731e0eb19293b8c7df12ee1e161d28483dcc4c
|
Provenance
The following attestation bundles were made for uncoverit-0.1.2.tar.gz:
Publisher:
publish-pypi.yml on Uncover-it/uncoverit-packages
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
uncoverit-0.1.2.tar.gz -
Subject digest:
d9174b998bde7c6a36eb148d54d044dad86bcbfa7cff94e76b6b4ae888d7b250 - Sigstore transparency entry: 936729051
- Sigstore integration time:
-
Permalink:
Uncover-it/uncoverit-packages@8de54f15dfe4172ab4e0665f22c206da5fc3dcbb -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Uncover-it
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@8de54f15dfe4172ab4e0665f22c206da5fc3dcbb -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e809e3b9357c521809f2e7d70f0f750a20d53921634d94bc64a7124eba37f949
|
|
| MD5 |
55b6cae82559450cb3f7b9ac19b187ae
|
|
| BLAKE2b-256 |
0c21083dcd1f3dd48c6951b73fc7739d13c77b5e733bb0edd8d31fce9853d1d7
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
uncoverit-0.1.2-py3-none-any.whl -
Subject digest:
e809e3b9357c521809f2e7d70f0f750a20d53921634d94bc64a7124eba37f949 - Sigstore transparency entry: 936729052
- Sigstore integration time:
-
Permalink:
Uncover-it/uncoverit-packages@8de54f15dfe4172ab4e0665f22c206da5fc3dcbb -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Uncover-it
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@8de54f15dfe4172ab4e0665f22c206da5fc3dcbb -
Trigger Event:
workflow_dispatch
-
Statement type: