Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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.

Metadata

Release files for pygreynoisev1 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygreynoisev1 0.1
File Size Uploaded
pygreynoisev1-0.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygreynoisev1 0.1
File Interpreter ABI Platform
pygreynoisev1-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / pygreynoisev1-0.1.tar.gz

Download URL pygreynoisev1-0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0383fbd11f9720d620ae98708bed296ce65027459aeb1a0d83d0916fb3c23c70
BLAKE2b-256 checksum
How to use checksums
695ff0810604d1ea8145df9ff2a038e1d7dfa4a48d35ecf8af9b1f669686f067
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pygreynoisev1-0.1-py3-none-any.whl

Download URL pygreynoisev1-0.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e327f8559f22a8932591fdfc6bda723ce830e22dd096413e8cb79a4688720e68
BLAKE2b-256 checksum
How to use checksums
a578dcdd03e9adc1ea3b0523b136b58c90109b3160992d249d9326c1aad96990
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page