Python binding for ModSecurity
libmodsecurity
, python-dev
or python3-dev
as well as cmake
Please refer to ModSecurity Releases and ModSecurity Installation Guide
Pymodsecurity is available as an python package, to install it simply run:
$ pip install pymodsecurity
There are multiple ways to build pymodsecurity from source, you can either compile the module manually with CMake, install using setup.py or build a conda package using the recipe. Below are steps for each way.
1 - Clone this repo and update the pybind11 submodule:
$ git clone --recurse-submodules https://github.com/pymodsecurity/pymodsecurity.git
2 - Compile and install the module:
$ python setup.py install
1 - Clone this repo and update the pybind11 submodule:
$ git clone --recurse-submodules https://github.com/pymodsecurity/pymodsecurity.git
2 - Create a build directory:
$ mkdir build && cd build
3 - Run CMake and make:
4 - Add the shared library to python's path
Building and installing with condaIf you're using conda, you can build the package locally using conda-build (you will need to install conda-build
).
1 - Clone this repo and update the pybind11 submodule:
$ git clone --recurse-submodules https://github.com/pymodsecurity/pymodsecurity.git
2 - Run conda-build:
3 - Install the package:
$ conda install --use-local pymodsecurity
Some examples are provided in the examples/
directory. More are coming soon.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4