Registry / http-networking / vt-graph-api

vt-graph-api

JSON →
library2.2.0pypypi✓ verified 81d ago

The official Python client library for VirusTotal Graph API (version 2.2.0). Enables querying VirusTotal's graph database using Cypher-like queries. Release cadence is ad-hoc.

pip install vt-graph-api
INSTALL
IMPORT
SIG · VT-GRAPH-API
V
vt-graph-api
http-networkingpythonv2.2.0
Install
2.2s avg
Import
Disk
20MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.2s · import 0.000s · 22MB
20MB installed
● package 20MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

VTGraph
from vt_graph_api import VTGraph
from vt_graph_api import VTGraphAPI
Node
from vt_graph_api import Node
RepresentationType
from vt_graph_api import RepresentationType

Initialize client with API key and run a Cypher query.

from vt_graph_api import VTGraphAPI import os api_key = os.environ.get('VT_API_KEY', '') client = VTGraphAPI(api_key) try: result = client.query("MATCH (node:file {sha256: '275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f'}) RETURN node") print(result) except Exception as e: print(f"Error: {e}")
Debug
Known issues
breakingPython 2 support was dropped in v2.0.0. Use Python 3.6+.
fix
Upgrade to Python 3.6+ and use vt-graph-api >=2.0.0.
affects: >=2.0.0
gotchaThe 'query' method returns raw dict results. It does not validate queries before sending.
fix
Always wrap in try/except and validate your Cypher syntax beforehand.
affects: all
deprecatedThe method 'get' is deprecated since v2.0.0 in favor of 'query'.
fix
Replace 'get' calls with 'query'.
affects: >=2.0.0
Upgrade
Version history
2.2.0latest on PyPI · released Jul 28, 2022
Audit
Dependencies
requestsrequiredHTTP client for API calls
sixrequiredPython 2/3 compatibility (legacy)
Agent activity
33 hits · last 30 days
node
28
Amazon
1
OpenAI (training)
1
Resources
vt-graph-api — pip install vt-graph-api · libregistry