Python dictionaries with advanced dot notation access
MIT License
Published by cdgriffith over 3 years ago
merge_update
(thanks to Marcos Dione)popitems
wasn't first checking if box was frozen (thanks to Varun Madiath)Published by cdgriffith almost 4 years ago
pop
, popitem
and clear
(thanks to Varun Madiath)Published by cdgriffith about 4 years ago
Published by cdgriffith over 4 years ago
dotted
option for items
function (thanks to ipcoder)Published by cdgriffith over 4 years ago
Published by cdgriffith over 4 years ago
to_msgpack
and from_msgpack
Box
to other boxes or dicts via the -
sub operator #144 (thanks to Hitz)|
union boxes like will come default in Python 3.9 from PEP 0584mypy
type checking, black
formatting and other checks on commitbox_class
for cleaner inheritance #148 (thanks to David Aronchick)dotted
option for keys
method to return box_dots style keys (thanks to ipcoder)Box
or BoxList
were not fed box properties (thanks to Alexander Kapustin)pop
#67 (thanks to Patrock)to_csv
and from_csv
to have same string and filename options as all other transformsBoxList.box_class
to be stored in BoxList.box_options
dict as box_class
del
will raise BoxKeyError
, subclass of both KeyError
and BoxError
keys
, values
and items
which will return views againPublished by cdgriffith over 4 years ago
Published by cdgriffith over 4 years ago
Box
or BoxList
were not fed box properties (thanks to Alexander Kapustin)Published by cdgriffith over 4 years ago
dotted
and flat
option for keys
method to return box_dots style keys (thanks to ipcoder)Published by cdgriffith over 4 years ago
to_msgpack
and from_msgpack
Box
to other boxes or dicts via the -
sub operator #144 (thanks to Hitz)|
union boxes like will come default in Python 3.9 from PEP 0584mypy
type checking, black
formatting and other checks on commitbox_class
for cleaner inheritance #148 (thanks to David Aronchick)pop
or del
#67 (thanks to Patrock)to_csv
and from_csv
to have same string and filename options as all other transformsBoxList.box_class
to be stored in BoxList.box_options
dict as box_class
keys
, values
and items
which will return views againPublished by cdgriffith over 4 years ago
protected_keys
to remove magic methods from dict #146 (thanks to Krishna Penukonda)Published by cdgriffith over 4 years ago
default_box
doesn't first look for safe attributes before falling back to default (thanks to Pymancer)Published by cdgriffith over 4 years ago
box_it_up
in the documentationPublished by cdgriffith over 4 years ago
Box
as protected keysmerge_update
from incorrectly calling __setattr__
which was causing a huge slowdown (thanks to Jonas Irgens Kylling)copy
and __copy__
not copying box optionsPublished by cdgriffith over 4 years ago
box_dots
(thanks to Lei)BoxWarning
class to allow for the clean suppression of warningsNone
(thanks to Wenbo Zhao and Yordan Ivanov)BoxList
to properly send internal box options down into new listscamel_killer
to convert items on insert, which will change the keys when converted back to dict unlike beforePyYAML
if ruamel.yaml
is not detected (thanks to wim glenn)pypy
as it's pickling behavior is not the same as CPythonPublished by cdgriffith almost 5 years ago
get
to return None when not using default box (thanks to Jeremiah Lowin)Published by cdgriffith almost 5 years ago
Published by cdgriffith almost 5 years ago
Published by cdgriffith almost 5 years ago
Published by cdgriffith almost 5 years ago
box_from_file
helper function+
boxes togetherNone
placeholders (thanks to Harun Tuncay and Jeremiah Lowin)safe_attr
handles unsafe charactersordered_box
as Python 3.6+ is ordered by defaultBoxObject
in favor of it being another module