The API by usefulness¶
Perhaps the most useful way to learn this API is to sort by “usefulness”. I measure usefulness as the number of times I’ve used a particular function in my own code (excluding ubelt itself).
Function name |
Usefulness |
|---|---|
3542 |
|
1915 |
|
866 |
|
654 |
|
600 |
|
567 |
|
485 |
|
399 |
|
305 |
|
241 |
|
228 |
|
226 |
|
224 |
|
210 |
|
201 |
|
189 |
|
186 |
|
185 |
|
184 |
|
179 |
|
|
178 |
145 |
|
144 |
|
143 |
|
135 |
|
119 |
|
111 |
|
103 |
|
100 |
|
100 |
|
99 |
|
96 |
|
92 |
|
86 |
|
85 |
|
83 |
|
79 |
|
79 |
|
75 |
|
73 |
|
67 |
|
60 |
|
58 |
|
57 |
|
57 |
|
55 |
|
|
55 |
55 |
|
51 |
|
49 |
|
47 |
|
46 |
|
45 |
|
43 |
|
42 |
|
40 |
|
40 |
|
36 |
|
36 |
|
35 |
|
34 |
|
32 |
|
29 |
|
28 |
|
28 |
|
28 |
|
28 |
|
23 |
|
23 |
|
18 |
|
17 |
|
17 |
|
16 |
|
15 |
|
15 |
|
10 |
|
10 |
|
8 |
|
8 |
|
8 |
|
7 |
|
7 |
|
6 |
|
|
6 |
6 |
|
5 |
|
5 |
|
|
5 |
4 |
|
4 |
|
|
4 |
4 |
|
3 |
|
2 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
|
0 |
0 |
|
0 |
|
0 |
usage stats = {
'mean': 129.51282,
'std': 385.23578,
'min': 0.0,
'max': 3542.0,
'q_0.25': 5.0,
'q_0.50': 36.0,
'q_0.75': 100.0,
'med': 36.0,
'sum': np.int64(15153),
'shape': (117,),
}
ubelt.orderedset¶
ubelt.progiter¶
ubelt.util_arg¶
ubelt.util_cache¶
ubelt.util_cmd¶
ubelt.util_colors¶
<ubelt.NO_COLOR>
<ubelt.FORCE_COLOR>
<ubelt.highlight_code>
<ubelt.color_text>
ubelt.util_const¶
<ubelt.NoParam>
ubelt.util_deprecate¶
ubelt.util_dict¶
<ubelt.AutoDict>
<ubelt.AutoOrderedDict>
<ubelt.dzip>
<ubelt.ddict>
<ubelt.dict_hist>
<ubelt.dict_subset>
<ubelt.dict_union>
<ubelt.dict_isect>
<ubelt.dict_diff>
<ubelt.find_duplicates>
<ubelt.group_items>
<ubelt.invert_dict>
<ubelt.map_keys>
<ubelt.map_vals>
<ubelt.map_values>
<ubelt.sorted_keys>
<ubelt.sorted_vals>
<ubelt.sorted_values>
<ubelt.odict>
<ubelt.named_product>
<ubelt.varied_values>
<ubelt.SetDict>
<ubelt.UDict>
<ubelt.sdict>
<ubelt.udict>
ubelt.util_download¶
ubelt.util_download_manager¶
ubelt.util_format¶
ubelt.util_func¶
ubelt.util_futures¶
ubelt.util_hash¶
ubelt.util_import¶
<ubelt.split_modpath>
<ubelt.modname_to_modpath>
<ubelt.modpath_to_modname>
<ubelt.import_module_from_name>
<ubelt.import_module_from_path>
ubelt.util_indexable¶
<ubelt.Difference>
<ubelt.IndexableWalker>
<ubelt.indexable_allclose>
ubelt.util_io¶
<ubelt.readfrom>
<ubelt.writeto>
<ubelt.touch>
<ubelt.delete>
ubelt.util_links¶
ubelt.util_list¶
<ubelt.allsame>
<ubelt.argmax>
<ubelt.argmin>
<ubelt.argsort>
<ubelt.argunique>
<ubelt.boolmask>
<ubelt.chunks>
<ubelt.compress>
<ubelt.flatten>
<ubelt.iter_window>
<ubelt.iterable>
<ubelt.peek>
<ubelt.take>
<ubelt.unique>
<ubelt.unique_flags>
ubelt.util_memoize¶
<ubelt.memoize>
<ubelt.memoize_method>
<ubelt.memoize_property>
ubelt.util_mixins¶
ubelt.util_path¶
<ubelt.Path>
<ubelt.TempDir>
<ubelt.augpath>
<ubelt.shrinkuser>
<ubelt.userhome>
<ubelt.ensuredir>
<ubelt.expandpath>
<ubelt.ChDir>
ubelt.util_platform¶
<ubelt.WIN32>
<ubelt.LINUX>
<ubelt.DARWIN>
<ubelt.POSIX>
<ubelt.find_exe>
<ubelt.find_path>
<ubelt.ensure_app_cache_dir>
<ubelt.ensure_app_config_dir>
<ubelt.ensure_app_data_dir>
<ubelt.get_app_cache_dir>
<ubelt.get_app_config_dir>
<ubelt.get_app_data_dir>
<ubelt.platform_cache_dir>
<ubelt.platform_config_dir>
<ubelt.platform_data_dir>
ubelt.util_repr¶
ubelt.util_str¶
<ubelt.indent>
<ubelt.codeblock>
<ubelt.paragraph>
<ubelt.hzcat>
<ubelt.ensure_unicode>
ubelt.util_stream¶
<ubelt.TeeStringIO>
<ubelt.CaptureStdout>
<ubelt.CaptureStream>