pg.object_utils¶
Utility library that provides common traits for objects in Python.
Overview¶
pg.object_utils
sits at the bottom of all PyGlove modules and empowers other
modules with the following features:
Functionality
API
Formatting
Serialization
Partial construction
Hierarchical key representation
Hierarchical object traversal
Hierarchical object transformation
Code generation
Docstr handling
Error handling |
pg.catch_errors
,
Objects¶
Classes¶
Functions¶
- auto_plural
- bracket_chars
- canonicalize
- catch_errors
- comma_delimited_str
- docstr
- ensure_explicit_method_override
- explicit_method_override
- flatten
- format
- from_json
- is_partial
- kvlist_str
- make_function
- 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_pop
- thread_local_push
- thread_local_set
- thread_local_value_scope
- to_json
- transform
- traverse
- try_listify_dict_with_int_keys