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 | Actions Reset |
|---|---|---|---|---|
| pythreatgrid2-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pythreatgrid2-0.1.1-py3-none-any.whl |
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
|
Security for pythreatgrid2 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.