Metadata-Version: 2.1
Name: greynoiselabs
Version: 0.1.19
Summary: Abstraction to interact with GreyNoise Labs GraphQL API.
Home-page: https://api.labs.greynoise.io/
License: MIT
Keywords: internet,scanning,threat intelligence,security
Author: GreyNoise Intelligence
Author-email: labs@greynoise.io
Requires-Python: >=3.8,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Libraries
Requires-Dist: Click (==8.1.6)
Requires-Dist: PyJWT (==2.8.0)
Requires-Dist: auth0-python (==4.4.0)
Requires-Dist: colorama (==0.4.6)
Requires-Dist: httpx (==0.24.1)
Requires-Dist: jsonlines (==3.1.0)
Requires-Dist: merge_args (==0.1.5)
Requires-Dist: platformdirs (==3.9.1)
Requires-Dist: pydantic (==1.10.9)
Requires-Dist: requests (==2.31.0)
Requires-Dist: requests_oauthlib (==1.3.1)
Requires-Dist: rich (==13.4.2)
Requires-Dist: typer (==0.9.0)
Requires-Dist: urllib3 (==2.0.4)
Requires-Dist: websockets (==11.0.3)
Project-URL: Documentation, https://api.labs.greynoise.io/
Project-URL: Repository, https://github.com/GreyNoise-Intelligence/greynoiselabs
Description-Content-Type: text/x-rst

==========================================
Python GreyNoise Labs GraphQL Client & SDK
==========================================

.. image:: https://img.shields.io/badge/License-MIT-yellow.svg
    :target: https://opensource.org/licenses/MIT

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

.. _GreyNoise Labs API: https://api.labs.greynoise.io/

Documentation
=============
Documentation is available here: `Documentation`_

.. _Documentation: https://api.labs.greynoise.io/1/docs/

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`

..  code-block:: python

    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)

