| 1 |
"""Python Utils |
| 2 |
|
| 3 |
This package contains dependency-free Python utility functions used throughout the |
| 4 |
codebase. |
| 5 |
|
| 6 |
Each utility should belong in its own file and be the default export. |
| 7 |
|
| 8 |
These functions are not part of the module interface and are subject to change. |
| 9 |
""" |
| 10 |
|
| 11 |
from .convert_case import camel_to_snake, snake_to_camel |
| 12 |
from .cached_property import cached_property |
| 13 |
from .description import ( |
| 14 |
Description, |
| 15 |
is_description, |
| 16 |
register_description, |
| 17 |
unregister_description, |
| 18 |
) |
| 19 |
from .did_you_mean import did_you_mean |
| 20 |
from .group_by import group_by |
| 21 |
from .identity_func import identity_func |
| 22 |
from .inspect import inspect |
| 23 |
from .is_awaitable import is_awaitable |
| 24 |
from .is_iterable import is_collection, is_iterable |
| 25 |
from .natural_compare import natural_comparison_key |
| 26 |
from .awaitable_or_value import AwaitableOrValue |
| 27 |
from .suggestion_list import suggestion_list |
| 28 |
from .frozen_error import FrozenError |
| 29 |
from .frozen_list import FrozenList |
| 30 |
from .frozen_dict import FrozenDict |
| 31 |
from .merge_kwargs import merge_kwargs |
| 32 |
from .path import Path |
| 33 |
from .print_path_list import print_path_list |
| 34 |
from .simple_pub_sub import SimplePubSub, SimplePubSubIterator |
| 35 |
from .undefined import Undefined, UndefinedType |
| 36 |
|
| 37 |
__all__ = [ |
| 38 |
"camel_to_snake", |
| 39 |
"snake_to_camel", |
| 40 |
"cached_property", |
| 41 |
"did_you_mean", |
| 42 |
"Description", |
| 43 |
"group_by", |
| 44 |
"is_description", |
| 45 |
"register_description", |
| 46 |
"unregister_description", |
| 47 |
"identity_func", |
| 48 |
"inspect", |
| 49 |
"is_awaitable", |
| 50 |
"is_collection", |
| 51 |
"is_iterable", |
| 52 |
"merge_kwargs", |
| 53 |
"natural_comparison_key", |
| 54 |
"AwaitableOrValue", |
| 55 |
"suggestion_list", |
| 56 |
"FrozenError", |
| 57 |
"FrozenList", |
| 58 |
"FrozenDict", |
| 59 |
"Path", |
| 60 |
"print_path_list", |
| 61 |
"SimplePubSub", |
| 62 |
"SimplePubSubIterator", |
| 63 |
"Undefined", |
| 64 |
"UndefinedType", |
| 65 |
] |