Metadata-Version: 2.4
Name: pythreatgrid2
Version: 0.1.1
Summary: Python wrapper around the Threat Grid API
Home-page: https://github.com/Te-k/pythreatgrid
Author: Tek
Author-email: tek@randhome.io
License: MIT
Keywords: security
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# pythreatgrid2

Python 3 wrapper for the Threat Grid API

Renamed as `pythreatgrid2` because there is now another library that seems pretty good, [pythreagrid](https://github.com/RustyBower/pythreatgrid)

## 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:
```py
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
