Skip to content

Releases: PFython/cleverdict

Better error handling of options

05 Feb 14:01
Compare
Choose a tag to compare

Handles edge case error handling where only=/ignore=/exclude= 0 and 1 (int).

More filters for import and export: only= and exclude=

03 Feb 15:47
Compare
Choose a tag to compare

Release Highlights

Added exclude= as an alternative for ignore= (for Marshmallow fans)
Added only= (for Marshmallow fans)
Added exclude= ignore= and only= to __init__ for selective import
Made exclude= ignore= and only= permissive (functions now accept lists OR single item strings for convenience)
y=CleverDict(x) now imports a fullcopy of x e.g. including _aliases/_vars
Refactored using new preprocess_options() function

Great new features, more robust!

30 Jan 01:54
Compare
Choose a tag to compare

Highlights in Version 1.8.1

Added to_json() and from_json()
Added to_lines() and from_lines()
Added to_dict()
Added set_autosave (which works on individual objects, not the whole class)
Added set_autodelete (which works on individual objects, not the whole class)
Added autosave (which works on individual objects, not the whole class)
Added the ability to fully recreate a CleverDict with to_json(fullcopy=True)
Added cartoon!
Added logo!
Removed dependency on click
Revamped README
Removed identify_self()
Removed print output except for for autosave, but with 'silent' option
delattr removes attributes created using setattr_direct
Attributes created using setattr_direct update correctly.
Applied ignore=[] to: to_lines, to_list, to_json, info, to_dict, and repr
More consistent repr
._aliases and ._vars accessible as regular attributes
Substantially more and better tests

Removed .fromlist() as already covered in __init__

03 Nov 03:25
Compare
Choose a tag to compare
v1.7.2

Updated test_creation_using_list

Added .fromlist() and .tolist() methods for Client/Server serialisation

01 Nov 19:59
Compare
Choose a tag to compare

Major update, including Aliases!

17 Jul 16:13
Compare
Choose a tag to compare

CleverDict now inherits from the standard Python dict, rather than UserDict, and includes some useful methods for dealing with and displaying attributes, keys and the links between them.

Better handling of aliases, normalisation, and unicode attribute names

28 Jun 17:55
bb1ffd3
Compare
Choose a tag to compare
Merge pull request #1 from PFython/Ruud

Ruud

Key names are now normalised by default

23 Jun 10:32
Compare
Choose a tag to compare

__getattr__ simplified

20 Jun 23:07
Compare
Choose a tag to compare

Motivation picture added to README

20 Jun 22:19
Compare
Choose a tag to compare