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 clonefrom your forked projectcd imperva-sdk-python- do your changes and test them. See tests/ImpervaSdkSanity.py
git commitand 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.gitgit clone https://github.com/imperva/imperva-sdk-python.gitcd imperva-sdk-pythonpip install setuptools wheel sphinx_glpi_theme- To pack:
python setup.py sdist bdist_wheelPacked output is saved under dist/imperva-sdk-0.2.0.tar.gz cp dist/imperva-sdk-0.2.0.tar.gz ../imperva.github.io/versions/imperva-sdk-latest-wip.tar.gzrm -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