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 | RSS feed

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.

Source Distribution

pygreynoisev1-0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

pygreynoisev1-0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for pygreynoisev1-0.1.tar.gz
Algorithm Hash digest
SHA256 0383fbd11f9720d620ae98708bed296ce65027459aeb1a0d83d0916fb3c23c70
MD5 cb143b068d830a709a250c408b508616
BLAKE2b-256 695ff0810604d1ea8145df9ff2a038e1d7dfa4a48d35ecf8af9b1f669686f067

See more details on using hashes here.

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

Hashes for pygreynoisev1-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e327f8559f22a8932591fdfc6bda723ce830e22dd096413e8cb79a4688720e68
MD5 4afceaf366435dccad92e726e54bf3d8
BLAKE2b-256 a578dcdd03e9adc1ea3b0523b136b58c90109b3160992d249d9326c1aad96990

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page