Skip to main content

ensure_multipart_is_installed

Verifies that a compatible version of the multipart library is installed, raising a RuntimeError with a descriptive error message if the package is missing or incorrectly installed.

def ensure_multipart_is_installed() - > null

Verifies that a compatible version of the multipart library is installed and accessible. This function checks for 'python-multipart' (version > 0.0.12) or a valid 'multipart' package containing 'parse_options_header', raising a RuntimeError if the dependency is missing or incorrectly installed.

Returns

TypeDescription
nullNothing if the validation passes successfully