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.19.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

greynoiselabs-0.1.19-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

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

Hashes for greynoiselabs-0.1.19.tar.gz
Algorithm Hash digest
SHA256 d4efe0e469deed97ef31efa2b7dd30687c2688aa837ad947952017a63885ccbf
MD5 125525d3e543153905974bfa9a10dc13
BLAKE2b-256 f998f0d3b0af462a352705b98603168134edb61b81534ac939d794a372723b3f

See more details on using hashes here.

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

Hashes for greynoiselabs-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 a57e2eacaa24065fd985c84273fd9eb7c11179e90bdbdcc9caba38de2c21b3fb
MD5 e31cf37b05945c5f6b4ed2999640dcc0
BLAKE2b-256 a57d35202bbeb885d2bfd744686d81901ab5cf8b388676077c19fc28c8dfe2a3

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