imperva-sdk is an Imperva SecureSphere Open API SDK for Python, which allows Python developers to write software that communicates with the SecureSphere MX. imperva-sdk provides an easy to use, object-oriented API in addition to JSON export/import capabilities.
To use the SDK: follow Quick start instructions.
To push changes as a contributer:
- fork https://github.com/imperva/imperva-sdk-python
git clone
from your forked projectcd imperva-sdk-python
- do your changes and test them. See tests/ImpervaSdkSanity.py
git commit
and thengit push
- create a pull request from your fork to imperva.
To pack and publish as product owner:
git clone https://github.com/imperva/imperva.github.io.git
git clone https://github.com/imperva/imperva-sdk-python.git
cd imperva-sdk-python
pip install setuptools wheel sphinx_glpi_theme
- To pack:
python setup.py sdist bdist_wheel
Packed output is saved under dist/imperva-sdk-0.2.2.tar.gz cp dist/imperva-sdk-0.2.2.tar.gz ../imperva.github.io/versions/imperva-sdk-latest-wip.tar.gz
rm -Rf ../imperva.github.io.git/imperva-sdk-python
- To generate documentation site:
sphinx-build -b html -c . docs ../imperva.github.io/imperva-sdk-python
cd ../imperva.github.io
- git commit changes and push