vkit.utility

 1# Copyright 2022 vkit-x Administrator. All Rights Reserved.
 2#
 3# This project (vkit-x/vkit) is dual-licensed under commercial and SSPL licenses.
 4#
 5# The commercial license gives you the full rights to create and distribute software
 6# on your own terms without any SSPL license obligations. For more information,
 7# please see the "LICENSE_COMMERCIAL.txt" file.
 8#
 9# This project is also available under Server Side Public License (SSPL).
10# The SSPL licensing is ideal for use cases such as open source projects with
11# SSPL distribution, student/academic purposes, hobby projects, internal research
12# projects without external distribution, or other projects where all SSPL
13# obligations can be met. For more information, please see the "LICENSE_SSPL.txt" file.
14from .type import PathType
15from .opt import (
16    attrs_lazy_field,
17    unwrap_optional_field,
18    get_cattrs_converter_ignoring_init_equals_false,
19    is_path_type,
20    read_json_file,
21    get_data_folder,
22    rng_choice,
23    rng_choice_with_size,
24    rng_shuffle,
25    sample_cv_resize_interpolation,
26    dyn_structure,
27    normalize_to_probs,
28    normalize_to_keys_and_probs,
29    convert_camel_case_name_to_snake_case_name,
30    get_config_class_snake_case_name,
31    get_generic_classes,
32)
33from .pool import Pool, PoolConfig