pg.utils¶
Utility library that provides common traits for objects in Python.
Overview¶
pg.utils sits at the bottom of all PyGlove modules and empowers other
modules with the following features:
Objects¶
Classes¶
Functions¶
- all_contextual_values
- auto_plural
- bracket_chars
- camel_to_snake
- canonicalize
- catch_errors
- colored
- colored_block
- comma_delimited_str
- contextual_override
- contextual_value
- decolor
- docstr
- ensure_explicit_method_override
- explicit_method_override
- flatten
- format
- from_json
- get_contextual_override
- is_partial
- kvlist_str
- match_error
- maybe_markdown_quote
- merge
- merge_tree
- message_on_path
- quote_if_str
- registered_types
- repr_format
- str_format
- thread_local_decrement
- thread_local_del
- thread_local_get
- thread_local_has
- thread_local_increment
- thread_local_peek
- thread_local_pop
- thread_local_push
- thread_local_set
- thread_local_value_scope
- timeit
- to_json
- transform
- traverse
- try_listify_dict_with_int_keys
- with_contextual_override