Python
FalconPy is the CrowdStrike Falcon SDK for Python. It abstracts all Falcon OAuth2 API interactions, handles token management automatically, and provides two approaches for working with the API: Service Classes (one per API collection) and the Uber Class (a single interface to every operation).
FalconPy supports Python 3.8 through 3.13 on macOS, Windows, and Linux.
Installation
Section titled “Installation”pip install crowdstrike-falconpyQuick Start
Section titled “Quick Start”from falconpy import Hosts
# Automatically retrieve FALCON_CLIENT_ID and FALCON_CLIENT_SECRET# using Environment Authenticationhosts = Hosts()
result = hosts.query_devices_by_filter(filter="hostname:*'search-term*'")print(result)