Skip to main content

Python wrapper around the GreyNoise APO

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pygreynoisev1, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pygreynoisev1-0.1-py3-none-any.whl (5.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pygreynoisev1-0.1.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page