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
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file greynoiselabs-0.1.19.tar.gz.
File metadata
- Download URL: greynoiselabs-0.1.19.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4efe0e469deed97ef31efa2b7dd30687c2688aa837ad947952017a63885ccbf
|
|
| MD5 |
125525d3e543153905974bfa9a10dc13
|
|
| BLAKE2b-256 |
f998f0d3b0af462a352705b98603168134edb61b81534ac939d794a372723b3f
|
File details
Details for the file greynoiselabs-0.1.19-py3-none-any.whl.
File metadata
- Download URL: greynoiselabs-0.1.19-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a57e2eacaa24065fd985c84273fd9eb7c11179e90bdbdcc9caba38de2c21b3fb
|
|
| MD5 |
e31cf37b05945c5f6b4ed2999640dcc0
|
|
| BLAKE2b-256 |
a57d35202bbeb885d2bfd744686d81901ab5cf8b388676077c19fc28c8dfe2a3
|