This document serves as a curated compendium of existing utility functions, meticulously organized by keywords to facilitate ease of navigation and application for developers across various disciplines. By categorizing these functions, we aim to provide a structured overview that not only simplifies the discovery process but also encourages the exploration of new methods and techniques that may have been previously overlooked. This categorization is intended to serve as a bridge, connecting developers with the tools they need to optimize their code, improve functionality, and innovate within their projects.
The categories outlined in this document span a wide range of functionalities, each category is accompanied by a brief description, followed by a list of utility functions that fall under its umbrella, this comprehensive approach aims to arm developers with a robust toolkit, enabling them to select the most appropriate utility functions for their specific needs. Whether you are working on a complex application requiring advanced data manipulation or a simple project needing basic string operations, this guide endeavors to provide a valuable resource that enhances your development process and leads to more efficient, effective, and elegant coding solutions.
Note: we may not update available functions in time, please run code below to check latest available functions.
pyufunc.show_util_func_by_category()
Available utility functions in pyUFunc (152):
-
util_ai:
- mean_absolute_error
- mean_absolute_percentage_error
- mean_percentage_error
- mean_squared_error
- mean_squared_log_error
- r2_score
- root_mean_squared_error
-
util_algorithm:
- algo_bubble_sort
- algo_heap_sort
- algo_insertion_sort
- algo_merge_sort
- algo_quick_sort
- algo_selection_sort
-
util_common:
- count_lines_of_code
- end_of_life
- func_running_time
- func_time
- generate_password
- get_user_defined_func
- get_user_defined_module
- get_user_imported_module
- import_package
- is_module_importable
- is_user_defined_func
- requires
- run_parallel
- show_docstring_google
- show_docstring_headers
- show_docstring_numpy
- timeout
- timeout_linux
-
util_data_processing:
- create_dataclass
- create_dataclass_from_dict
- cvt_digit_str_to_float
- cvt_digit_str_to_int
- cvt_int_to_alpha
- dataclass_dict_wrapper
- dict_delete_keys
- dict_split_by_chunk
- extend_dataclass
- get_layer_boundary
- is_float
- list_flatten_nested
- list_split_by_equal_sublist
- list_split_by_fixed_length
- merge_dataclass
- str_strip
-
util_datetime:
- cvt_current_dt_to_tz
- fmt_dt_to_str
- fmt_str_to_dt
- get_time_diff_in_unit
- get_timezone
- group_dt_daily
- group_dt_hourly
- group_dt_minutely
- group_dt_monthly
- group_dt_weekly
- group_dt_yearly
- list_all_timezones
-
util_geo:
- calc_area_from_wkt_geometry
- calc_distance_on_unit_haversine
- calc_distance_on_unit_sphere
- create_circle_at_point_with_radius
- cvt_baidu09_to_gcj02
- cvt_baidu09_to_wgs84
- cvt_gcj02_to_baidu09
- cvt_gcj02_to_wgs84
- cvt_wgs84_to_baidu09
- cvt_wgs84_to_gcj02
- download_elevation_tif_by
- find_closest_point
- find_k_nearest_points
- get_coordinates_from_geom
- get_osm_place
- gmns_geo
- gmns_read_link
- gmns_read_node
- gmns_read_poi
- gmns_read_zone
- GMNSAgent
- GMNSLink
- GMNSNode
- GMNSPOI
- GMNSZone
- proj_point_to_line
-
util_git_pypi:
- github_file_downloader
- github_get_status
- pypi_downloads
-
util_img:
- img_bytes_to_CV
- img_bytes_to_PIL
- img_CV_to_bytes
- img_CV_to_PIL
- img_PIL_to_bytes
- img_PIL_to_CV
- img_resize
- img_rotate
- img_rotate_bound
- img_show
- img_to_bytes
- img_translate
- is_CV_img
- is_PIL_img
-
util_log:
- add_date_in_filename
- generate_dir_with_date
- log_logger
- log_writer
-
util_network:
- get_host_ip
- get_host_name
- validate_url
-
util_office:
- is_valid_email
- printer_file
- send_email
-
util_pathio:
- add_dir_to_env
- add_pkg_to_sys_path
- check_file_existence
- check_filename
- check_files_in_dir
- check_platform
- create_tempfile
- create_unique_filename
- find_duplicate_files
- find_executable_from_PATH_on_win
- find_fn_from_PATH_on_win
- generate_unique_filename
- get_dir_size
- get_file_size
- get_filenames_by_ext
- get_files_by_ext
- get_terminal_height
- get_terminal_width
- is_linux
- is_mac
- is_windows
- path2linux
- path2uniform
- pickle_load
- pickle_save
- remove_duplicate_files
- remove_file
- show_dir_in_tree
- with_argparse
-
util_test:
- pytest_show_assert
- pytest_show_database
- pytest_show_fixture
- pytest_show_naming_convention
- pytest_show_parametrize
- pytest_show_raise
- pytest_show_skip_xfail
- pytest_show_warning
-
pkg_utils:
- find_util_func_by_keyword
- show_util_func_by_category
- show_util_func_by_keyword