All Versions
6
Latest Version
Avg Release Cycle
68 days
Latest Release
3459 days ago
Changelog History
Changelog History
-
v0.1.8 Changes
October 30, 2015DottedCollection.load_json()
now expects valid JSON and doesn't mask any error. -
v0.1.7 Changes
October 30, 2015Now you can't instantiate a dotted collection with an object that contains non-escaped dictionary keys with dots.
-
v0.1.4 Changes
August 21, 2015Thanks to @ryanwitt
-
v0.1.3
July 20, 2015 -
v0.1.2 Changes
January 19, 2015Special thanks to Marc Abramowitz.
-
v0.1.1 Changes
November 24, 2014When trying to load a leaf value (a string) recursively you got a
ValueError
. This release fixes it.Suppose you have an
obj
variable that is an instance ofDottedCollection
and a set of config paths and values in a settings collection:for setting in settings.all(): obj[setting.parameter] = DottedCollection.load\_json(setting.value)
That would fail if
setting.value
is an instance ofbasestring
.But if you do:
obj['source.body'] = DottedCollection.load\_json("something") obj['source.body.more'] = DottedCollection.load\_json('{"something": "more"}')
you will get an error because
obj['source.body']
is actually an instance ofbasestring
.