Skip to main content

Abstraction to interact with GreyNoise API.

Project description

https://circleci.com/gh/GreyNoise-Intelligence/pygreynoise.svg?style=shield https://sonarcloud.io/api/project_badges/measure?project=GreyNoise-Intelligence_pygreynoise&metric=coverage https://readthedocs.org/projects/greynoise/badge/?version=latest https://badge.fury.io/py/greynoise.svg https://img.shields.io/badge/License-MIT-yellow.svg https://quay.io/repository/greynoiseintel/pygreynoise/status

This is an abstract python library built on top of the GreyNoise service. It is preferred that users use this library when implementing integrations or plan to use GreyNoise within their code. The library includes a small client to interact with the API.

Documentation

Documentation is available here: Documentation

Quick Start

Install the library:

pip install greynoise or python setup.py install

Save your configuration:

greynoise setup --api-key <your-API-key>

Versioning

This python package follows semantic versioning. According to this:

  • We will NEVER push a breaking change without a major version release.

  • We will only add new features and/or bug fixes with minor version releases.

  • We will only do bug fixes for patch version release.

As such, we recommend you pin the dependency on this SDK to only allow minor version changes at most:

# allow patch version increments
greynoise~=1.4.0

# allow minor version increments
greynoise~=1.4

Usage

Usage: greynoise [OPTIONS] COMMAND [ARGS]...

  GreyNoise CLI.

Options:
  -h, --help  Show this message and exit.

Commands:
  account         View information about your GreyNoise account.
  alerts          List, create, delete, and manage your GreyNoise alerts.
  analyze         Analyze the IP addresses in a log file, stdin, etc.
  feedback        Send feedback directly to the GreyNoise team.
  filter          Filter the noise from a log file, stdin, etc.
  help            Show this message and exit.
  interesting     Report one or more IP addresses as "interesting".
  ip              Query GreyNoise for all information on a given IP.
  ip-multi        Perform Context lookup for multiple IPs at once.
  query           Run a GNQL (GreyNoise Query Language) query.
  quick           Quickly check whether or not one or many IPs are "noise".
  repl            Start an interactive shell.
  riot            Query GreyNoise IP to see if it is in the RIOT dataset.
  setup           Configure API key.
  signature       Submit an IDS signature to GreyNoise to be deployed to...
  similar         Query GreyNoise IP to identify Similar IPs.
  stats           Get aggregate stats from a given GNQL query.
  timeline        Query GreyNoise IP to identify Similar IPs.
  timelinehourly  Query GreyNoise IP to identify Similar IPs.
  version         Get version and OS information for your GreyNoise...

Project details


Download files

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

Source Distribution

greynoise-3.0.3.tar.gz (65.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

greynoise-3.0.3-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file greynoise-3.0.3.tar.gz.

File metadata

  • Download URL: greynoise-3.0.3.tar.gz
  • Upload date:
  • Size: 65.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.20

File hashes

Hashes for greynoise-3.0.3.tar.gz
Algorithm Hash digest
SHA256 833f5b5c641903164df1f7c8022fc44147dcd8a1c51f5da59e2ab315cd07a1e1
MD5 8c3bd836dda45d5f859f7b9d8a6d1051
BLAKE2b-256 c84524960ece75680c17ea9cd06b3bfe6ceacfd8ef9e56e51f8b6d9dca581495

See more details on using hashes here.

File details

Details for the file greynoise-3.0.3-py3-none-any.whl.

File metadata

  • Download URL: greynoise-3.0.3-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.20

File hashes

Hashes for greynoise-3.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8a22fd005bd747eec4035047a199d2f8967ccb341bea0d2e99cd55f26072147c
MD5 0ca4243927acd1f97c13198b2a35b981
BLAKE2b-256 e4b6b55d3058119d2cc417f17a431b4a2401d5149f4fa12025af17b6012b1cc8

See more details on using hashes here.

Supported by

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