The ThreatConnect™ TcEx App Framework provides functionality for writing ThreatConnect Exchange Apps.
Python requirements with known working version:
- colorama 0.3.9 (https://pypi.python.org/pypi/colorama)
- hvac 0.3.0 (https://pypi.python.org/pypi/hvac)
- inflect 0.2.5 (https://pypi.python.org/pypi/inflect)
- jsonschema 2.6.0 (https://pypi.python.org/pypi/jsonschema)
- parsedatetime 2.4 (https://pypi.python.org/pypi/parsedatetime)
- python-datetuil (https://pypi.python.org/pypi/python-dateutil)
- pytz latest (https://pypi.python.org/pypi/pytz)
- redis 2.10.6 (https://pypi.python.org/pypi/redis)
- requests 2.18.4 (http://docs.python-requests.org/en/latest)
- six 1.11.0 (https://pypi.python.org/pypi/six)
- tzlocal 1.5.1 (https://pypi.python.org/pypi/tzlocal)
Using pip
pip install tcex
Manually
cd tcex
python setup.py install --force
https://docs.threatconnect.com/en/latest/tcex/tcex.html
https://docs.threatconnect.com/en/latest/tcex/release_notes.html
All tests should be run in python2. The instructions below assume you have python2 on your system and have tcex installed.
To run the tests, you will need to:
- Move into
tests
directory (cd tests
) - Configure the following environmental variables:
API_ACCESS_ID
(e.g.123456789987654321
)TC_API_PATH
(e.g.https://sandbox.threatconnect.com/api
)API_DEFAULT_ORG
(e.g.My Organization
)API_SECRET_KEY
(e.g.abcdefg.....
)
- Run
pytest
(you may have to runpython2.7 -m pytest
depending on how your system is setup)
If you have any questions, bugs, or requests please contact support@threatconnect.com