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


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 details)

Uploaded Python 3

File details

Details for the file pythreatgrid2-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pythreatgrid2-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2rc1

File hashes

Hashes for pythreatgrid2-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 886163aff49dab16bdcc545aa4ad37c3501bed5dade4fadf7427db34aebd79ca
MD5 78ee92bc16fdd2f6e39d1cd41d314430
BLAKE2b-256 9320390c35e790c3eb5be50b4cc5f36d2118520aa540d7da8528434dda4d5069

See more details on using hashes here.

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