Frequently asked questions
How do I handle Python module dependencies for my app?
You can manage dependencies on Python modules by packaging the required modules with the app, or by adding PIP dependencies in the app JSON.
When an action is executed, the platform adds the following directories to the
Package required modules with the app
Place all required modules as part of the app TAR file. You can do this in the following ways:
- Install the modules into a sub directory of the app. PIP supports the
--targetcommand line switch that allows the modules to be installed at a specific location. Use this switch to install the modules into the app's subdirectory called
dependencies. When the app TAR file is installed on the platform the modules will be part of the app code.
- Distribute the complete module, including the source and license file, in a sub directory of the app. In this case the app will need to append any folders in the
The platform will install all the files present in the app TAR file in the app install directory. Be careful while packaging modules this way. Many Python modules are released under various licenses. Make sure the license allows for such redistribution. Packaging modules this way makes the app self-sufficient.
Add PIP dependencies in the app JSON
Specify app dependencies in the app JSON so that the platform tries to install the dependencies with the app. See Specifying pip dependencies for more information.
Tutorial: Use the app wizard to develop an app framework
This documentation applies to the following versions of Splunk® SOAR (Cloud): current
Feedback submitted, thanks!