semvec/pypi-packages huggingface dataset:
pulsedive 0.1.0
Python client for Pulsedive API
License: MIT License

Python Pulsedive Client
===========================

A low-level Python client for Pulsedive that aims provide an easy and idiomatic way to interact with the Pulsedive API.


Installation
------------

Install the ``pulsedive`` package with `pip
<https://pypi.org/project/pulsedive/>`_::

    pip install pulsedive


Example use
-----------

Simple use-case::

    import pulsedive
    # pud = pulsedive.Pulsedive('<API KEY>')
    pud = pulsedive.Pulsedive()

    # Getting a specific indicator
    ind = pud.indicator(value='pulsedive.com')
    pud.indicator.links(ind['iid'])

    # Searching for indicators
    pud.search('pulsedive', risk=['high', 'critical'], indicator_type=['ip'])

    # Pulling from feeds or threats
    pud.feed.links(1)
    pud.threat.links(1)

    # Searching for threats and feeds
    pud.search.threat('Zeus', risk=['high', 'critical'])
    pud.search.feed('Zeus')

    # Exporting a search
    pud.search.to_csv(filename="zues.csv", threat=['Zeus'], indicator_type=['ip'])

    # Analyzing
    # q = pud.analyze.encoded('Z29vZ2xlLmNvbQ==')
    q = pud.analyze('google.com')
    pud.analyze.results(q['qid'])

`Full documentation`_.

.. _Full documentation: https://pulsedive-py.readthedocs.io