util

Utilities
These scripts are meant to assist developers working on FalconPy, the CrowdStrike Falcon SDK for Python, and are mostly focused on automating tasks that have to be performed consistently.
Inventory
All of these utilities are designed to be executed from within the repository root folder, but several include functionality allowing for passing this location instead.
babel_fish.py
Lists all available operations, their HTTP method, endpoint and service collection. Can search for a specific string across all four columns. Must be run from the src
folder or you must have FalconPy available within your environment. (Python application)
coverage.config
Configuration settings for coverage.py integration.
create-lambda-layer.sh
Leverages docker to create a ZIP archive of FalconPy to be used as an AWS lambda layer. A modified version of this utility is used to generate the download available on falconpy.io.
debug.sh
Starts the FalconPy interactive debugger. Execute this from the repository root directory.
Example: util/debug.sh
docstyle.sh
Lints the package docstrings using pydocstyle
and returns the result.
Execute from the root of the repository: util/docstyle.sh
find-strings.sh
Search the code base for a string or list of strings. Returns module file name and line number for all matches. Run from within the root of the repository folder or pass the folder location as the second argument.
find-strings.sh SEARCH1,SEARCH2 /path/to/repo/home
lint.sh
Lints the package source with flake8
and pylint
and returns the result. Execute from the root of the repository or pass the location you wish to lint as the first argument: util/lint.sh /path/to/folder
public-modules.sh
Returns a list of all public FalconPy modules and the count of their available methods. Execute from the root of the repository folder or pass this location as the first argument.
public-modules.sh /path/to/repo/home
run-tests.sh
Runs a complete unit test series, reports code coverage and runs a bandit analysis.
Should be executed from the repository root: util/run-tests.sh
unit-test.sh
Runs a single unit test series and reports code coverage. Execute individual tests by specifying their module name. Example: util/unit-test.sh real_time_response
vcheck.sh
Checks your installed version of FalconPy against the latest release version.
Will attempt to detect Pipenv
/ Poetry
.
Can be executed locally (util/vcheck.sh
) or online with:
curl https://falconpy.io/vcheck --silent | bash
Discussion forums
Our community maintains a discussion board for interacting about FalconPy usage and for handling questions. This content is labeled by API and fully searchable.
Issues
Think perhaps the error your receiving is a bug within FalconPy?
Have you found a piece of documentation that is incorrect, missing, or pointing to a broken link?
Please let us know by submitting an issue!
WE STOP BREACHES
Last updated
Was this helpful?