openai/openai-python
Publicmirrored from https://github.com/openai/openai-pythonAvailable
src/openai/_utils/__init__.py
57lines · modecode
| 1 | from ._sync import asyncify as asyncify |
| 2 | from ._proxy import LazyProxy as LazyProxy |
| 3 | from ._utils import ( |
| 4 | flatten as flatten, |
| 5 | is_dict as is_dict, |
| 6 | is_list as is_list, |
| 7 | is_given as is_given, |
| 8 | is_tuple as is_tuple, |
| 9 | json_safe as json_safe, |
| 10 | lru_cache as lru_cache, |
| 11 | is_mapping as is_mapping, |
| 12 | is_tuple_t as is_tuple_t, |
| 13 | parse_date as parse_date, |
| 14 | is_iterable as is_iterable, |
| 15 | is_sequence as is_sequence, |
| 16 | coerce_float as coerce_float, |
| 17 | is_mapping_t as is_mapping_t, |
| 18 | removeprefix as removeprefix, |
| 19 | removesuffix as removesuffix, |
| 20 | extract_files as extract_files, |
| 21 | is_sequence_t as is_sequence_t, |
| 22 | required_args as required_args, |
| 23 | coerce_boolean as coerce_boolean, |
| 24 | coerce_integer as coerce_integer, |
| 25 | file_from_path as file_from_path, |
| 26 | parse_datetime as parse_datetime, |
| 27 | strip_not_given as strip_not_given, |
| 28 | deepcopy_minimal as deepcopy_minimal, |
| 29 | get_async_library as get_async_library, |
| 30 | maybe_coerce_float as maybe_coerce_float, |
| 31 | get_required_header as get_required_header, |
| 32 | maybe_coerce_boolean as maybe_coerce_boolean, |
| 33 | maybe_coerce_integer as maybe_coerce_integer, |
| 34 | ) |
| 35 | from ._typing import ( |
| 36 | is_list_type as is_list_type, |
| 37 | is_union_type as is_union_type, |
| 38 | extract_type_arg as extract_type_arg, |
| 39 | is_iterable_type as is_iterable_type, |
| 40 | is_required_type as is_required_type, |
| 41 | is_annotated_type as is_annotated_type, |
| 42 | is_type_alias_type as is_type_alias_type, |
| 43 | strip_annotated_type as strip_annotated_type, |
| 44 | extract_type_var_from_base as extract_type_var_from_base, |
| 45 | ) |
| 46 | from ._streams import consume_sync_iterator as consume_sync_iterator, consume_async_iterator as consume_async_iterator |
| 47 | from ._transform import ( |
| 48 | PropertyInfo as PropertyInfo, |
| 49 | transform as transform, |
| 50 | async_transform as async_transform, |
| 51 | maybe_transform as maybe_transform, |
| 52 | async_maybe_transform as async_maybe_transform, |
| 53 | ) |
| 54 | from ._reflection import ( |
| 55 | function_has_argument as function_has_argument, |
| 56 | assert_signatures_in_sync as assert_signatures_in_sync, |
| 57 | ) |
| 58 | |