This release contains refinements of object behaviors, including typing, formatting, serialization, hashing and etc. Besides, it introduces pg.io
as an abstracted interface for operating with different file systems.
New Sub-packages
Enhancements
-
Typing
-
Object Formatting:
- Introduce
__str_format_args__
and__repr_format_args__
attributes for customize str/repr behavior forpg.Formattable
. (7e0a98b) - Introduced
pg.str_format
andpg.repr_format
context manager to control repr/str formatting for symbolic objects. (0a2ea6) - Add argument
markdown
forpg.str_format
andpg.repr_format
to quote the formatted object. (fd6ea8d) - Added argument
use_inferred
forpg.Symbolic
formatting. (fdd3d3d) - Escape strings with
'
and\n
inpg.format
. (0489642) - Better formatting for field docstr of multiple lines. (900d677)
- Introduce
-
Object Serialization:
-
Object Behaviors: