bake

Utility builder function to structure dictionary responses for Flask jsonify payloads.

Functions

def bake(message: Any) -> dict

Wraps input data into a {"response_data": message} dictionary.

Usage Example

PYTHON
from inpsPyPI import bake

response = bake("Operation successful")
# {'response_data': 'Operation successful'}