# tinker_cookbook.utils

| Function | Description |
| --- | --- |
| [`read_jsonl()`](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/utils/read_jsonl/) | Read a JSONL (JSON Lines) file and return a list of parsed dictionaries. |
| [`code_state()`](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/utils/code_state/) | Capture the current code state for one or more Python modules as a diff string. |
| [`format_colorized()`](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/utils/format_colorized/) | Colour-code text according to per-token weights. |
| [`warn_deprecated()`](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/utils/warn_deprecated/) | Emit a DeprecationWarning for a deprecated feature. |
| [`deprecated()`](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/utils/deprecated/) | Decorator to mark a function or class as deprecated. |
| [`make_deprecated_module_getattr()`](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/utils/make_deprecated_module_getattr/) | Create a `__getattr__` function for deprecating module-level attributes. |
