Abstraction to interact with GreyNoise Labs GraphQL API.
Project description
This is an abstract python client and SDK library generated from the GreyNoise Labs API service.
Documentation
Documentation is available here: Documentation
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
Release history Release notifications | RSS feed
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.13.tar.gz
(12.9 kB
view hashes)
Built Distribution
Close
Hashes for greynoiselabs-0.1.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5003fb51614ee00996153db20cd180919a6379724e7751295199199378f833b |
|
MD5 | c63e681dd763a2db5380d7a2b3192edb |
|
BLAKE2b-256 | 77f15635391cef2c51ad3ba99847debe7f41f30b6baff36b99276dafb46e108e |