Skip to main content

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.

Source Distribution

resilient-34.0.195.tar.gz (37.3 kB view details)

Uploaded Source

File details

Details for the file resilient-34.0.195.tar.gz.

File metadata

  • Download URL: resilient-34.0.195.tar.gz
  • Upload date:
  • Size: 37.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.13

File hashes

Hashes for resilient-34.0.195.tar.gz
Algorithm Hash digest
SHA256 fb285aeff48dbd79de1bda03084621bc794926e2c7503e4c2ce2665ddc698749
MD5 821c5ea93e7d67baecf55ac4976bb213
BLAKE2b-256 2481b362390394f84b842e43e10d6e6e0c156a586e8223c796ae80f1be4a5b51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page