python-dshield icon indicating copy to clipboard operation
python-dshield copied to clipboard

Pythonic interface to the Internet Storm Center / DShield API.

DShield

.. image:: https://travis-ci.org/rshipp/python-dshield.svg?branch=master :target: https://travis-ci.org/rshipp/python-dshield :alt: Build Status .. image:: https://coveralls.io/repos/rshipp/python-dshield/badge.png?branch=master :target: https://coveralls.io/r/rshipp/python-dshield?branch=master :alt: Test Coverage .. image:: https://api.codacy.com/project/badge/3906ec0470df46b8923fc3177e7daa78 :target: https://www.codacy.com/app/rshipp/python-dshield :alt: Code Health .. image:: http://img.shields.io/pypi/v/dshield.svg :target: https://pypi.python.org/pypi/dshield :alt: PyPi Version

A Pythonic interface to the Internet Storm Center / DShield API_.

Installation

pip install dshield

Usage

For the full documentation, see the ReadTheDocs_ site. If you just want a quick start::

>>> import dshield
>>> dshield.infocon()
{'status': 'green'}
>>> dshield.infocon(dshield.XML)
'<?xml version="1.0" encoding="UTF-8"?>\n<infocon>\n<status>green</status>\n</infocon>'

.. _API: https://dshield.org/api/ .. _ReadTheDocs: http://dshield.readthedocs.org/en/latest/