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    get_cattrs_converter_ignoring_init_equals_false,
18    is_path_type,
19    read_json_file,
20    get_data_folder,
21    rng_choice,
22    rng_choice_with_size,
23    rng_shuffle,
24    sample_cv_resize_interpolation,
25    dyn_structure,
26    normalize_to_probs,
27    normalize_to_keys_and_probs,
28    convert_camel_case_name_to_snake_case_name,
29    get_config_class_snake_case_name,
30    get_generic_classes,
31)
32from .pool import Pool, PoolConfig