Skip to main content

Python wrapper around the Threat Grid API

Project description

pythreatgrid2

Python 3 wrapper for the Threat Grid API

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

Install

Install from pypi : pip install pythreatgrid2

Or install it manually :

git clone https://github.com/Te-k/pythreatgrid2.git
cd pythreatgrid
pip install .

Use

Get indicators for all samples connecting to a domain:

from pythreatgrid2 import ThreatGrid, ThreatGridError

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

Documentation

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

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

Project details


Release history Release notifications

This version

0.1.1

Download files

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

Files for pythreatgrid2, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pythreatgrid2-0.1.1-py3-none-any.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page