Python wrapper around the GreyNoise APO
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
pygreynoise
Python 3 wrapper for the greynoise API v1, see https://github.com/Grey-Noise-Intelligence/api.greynoise.io and greynoise.io. API V1 is nor deprecated but still working, see this project for the API V2
To install, either use pypi with pip install pygreynoisev1 or install from sources:
git clone https://github.com/Te-k/pygreynoisev1.git
cd pygreynoisev1
pip install -r requirements.txt
pip install .
CLI
$ greynoisev1 -h
usage: greynoise [-h] {ip,list,tag,config} ...
Request GreyNoise
positional arguments:
{ip,list,tag,config} Subcommand
ip Request info on an IP
list List GreyNoise Tags
tag Query data for a tag
config Configure key file
optional arguments:
-h, --help show this help message and exit
Library
from pygreynoisev1 import GreyNoise
gn = GreyNoise()
tags = gn.tags()
try:
gn.query_ip('198.20.69.74')
except GreyNoiseError:
print('IP not found')
try:
gn.query_tag('YANDEX_SEARCH_ENGINE')
except GreyNoiseError:
print('This tag does not exist')
Author and license
Pygreynoisev1 was started by Tek and is published under MIT license. Feel free to open issues and pull requests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygreynoisev1-0.1.tar.gz.
File metadata
- Download URL: pygreynoisev1-0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0383fbd11f9720d620ae98708bed296ce65027459aeb1a0d83d0916fb3c23c70
|
|
| MD5 |
cb143b068d830a709a250c408b508616
|
|
| BLAKE2b-256 |
695ff0810604d1ea8145df9ff2a038e1d7dfa4a48d35ecf8af9b1f669686f067
|
File details
Details for the file pygreynoisev1-0.1-py3-none-any.whl.
File metadata
- Download URL: pygreynoisev1-0.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e327f8559f22a8932591fdfc6bda723ce830e22dd096413e8cb79a4688720e68
|
|
| MD5 |
4afceaf366435dccad92e726e54bf3d8
|
|
| BLAKE2b-256 |
a578dcdd03e9adc1ea3b0523b136b58c90109b3160992d249d9326c1aad96990
|