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
Metadata
Release files for pythreatgrid2 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pythreatgrid2-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pythreatgrid2-0.1.1-py3-none-any.whl
| Download URL | pythreatgrid2-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
886163aff49dab16bdcc545aa4ad37c3501bed5dade4fadf7427db34aebd79ca
|
|
BLAKE2b-256 checksum How to use checksums |
9320390c35e790c3eb5be50b4cc5f36d2118520aa540d7da8528434dda4d5069
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|