Resilient API
Project description
resilient
This package is a Python client module for the Resilient REST API.
Recent Changes
2019-08-02: version 33.0.189
-
Added support for API key and API key secret, now able to authenticate
using API keys instead of email/password
-
New functions added to resilient-lib
'get_file_attachment_metadata()'
'write_to_tmp_file()'
-
Updated 'validate_fields()' function in resilient-lib,
adding the ability to validate fields in app.config
-
Other minor bug fixes.
Installation
Instructions for building and installing this package can be found in the repository README.
Tests
python setup.py test [-a ""] [-c ] [-p ""]
e.g. python setup.py test -a "--org=Test" -c ~/my.config -p "-s"
Code coverage
pytest-cov
First need to install pytest-cov
pip install pytest-cov
pip3 install pytest-cov
Make folder to store coverage data
mkdir cov
run test and collect code coverage data
You need the template_test.json file from the tests folder.
python setup.py test -a "--org=TestOrg" -c ./app.config -p "-s --cov=./resilient --cov-report=html:./cov"
View coverage data
firefox ./cov/index.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.