semvec/pypi-packages huggingface dataset:
waflabs 1.0.3
A python CLI and wrapper for the WAFLABS API - https://waflabs.com/api/
License: MIT
Keywords: wrapper library waf lab labs waflabs api cli

WAFLABS
==================

.. image:: https://img.shields.io/pypi/v/waflabs.svg
    :target: https://pypi.python.org/pypi/waflabs/
    :alt: Latest Version

``waflabs`` is a Python wrapper and CLI tool for the `WAFLABS REST API`_.

Installation
------------
.. code-block:: bash

    $ pip install waflabs

CLI usage
---------
.. code-block:: bash

    $ waflabs test --url https://<your domain>/test.html --block-code 403 --waf modsecurity

To see all options run: $ waflabs --help

Module usage
------------
.. code-block:: python

    from waflabs import waflabsapi
    waflabs = waflabsapi.WAFLabsApi(access_id="1234", acess_key="abcd")

    test_target = {"url": "https://waflabs.com/testme/",
            "block_code": 406,
            "waf": "modsecurity}

    print(waflabs.testmywaf(test_target))

.. _WAFLABS REST API: https:/waflabs.com/api/