Skip to main content

Abstraction to interact with GreyNoise Labs GraphQL API.

Project description

https://img.shields.io/badge/License-MIT-yellow.svg

This is an abstract python client and SDK library generated from the GreyNoise Labs API service.

Documentation

Documentation is available here: Documentation

CLI Quick Start

Install the CLI:

python3 -m pip install greynoiselabs

SDK Quick Start

Install the library:

python3 -m pip install greynoiselabs or make install when in the root directory of the repository.

Example SDK Code

You can authenticate to the Labs API and obtain a copy of your token there or with the CLI after running greynoiselabs init

import os
import asyncio
from greynoiselabs.client import Client

client = Client("https://api.labs.greynoise.io/1/query",
                {"Authorization": f"Bearer {os.environ['AUTH_TOKEN']}"})

response = asyncio.run(client.top_knocks(ip="221.144.229.187"))
print(response)

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

greynoiselabs-0.1.17.tar.gz (12.9 kB view hashes)

Uploaded Source

Built Distribution

greynoiselabs-0.1.17-py3-none-any.whl (19.2 kB view hashes)

Uploaded Python 3

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