Skip to main content

Python wrapper around the Threat Grid API

Project description


Python 3 wrapper for the Threat Grid API

Renamed as pythreatgrid2 because there is now another library that seems pretty good, pythreagrid


Install from pypi : pip install pythreatgrid2

Or install it manually :

git clone
cd pythreatgrid
pip install .


Get indicators for all samples connecting to a domain:

from pythreatgrid2 import ThreatGrid, ThreatGridError

key = ''
tg = ThreatGrid(KEY)
samples = tg.search_samples('', type='domain')
for sample in samples['items']:
    iocs = tg.get_sample_iocs(sample['id'])


cd docs/build/html
python -m http.server 8000

Then visit http://localhost:8000/pythreatgrid.html#module-pythreatgrid

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pythreatgrid2-0.1.1-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

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