dataclasses-json

Easily serialize Data Classes to and from JSON

MIT License

Downloads
25.6M
Stars
1.4K
Committers
69

Bot releases are visible (Hide)

dataclasses-json - 0.5.2

Published by lidatong over 3 years ago

This reverts the removal of encode_json 0.5.0

dataclasses-json - 0.5.3

Published by lidatong over 3 years ago

This release updates pytest to 6.5.2, because of a security fix in its transitive dependency py (which will be indirectly upgraded to >=1.10.

Note pytest is not installed by default with this package -- only when you specify want dev mode (see setup.py file).

dataclasses-json - 0.5.1

Published by lidatong over 4 years ago

Move FieldOverrides outside of function as a perf optimization
(#225). Thanks @justinaustin

dataclasses-json - 0.5.0

Published by lidatong over 4 years ago

BREAKING CHANGE
The optional encode_json parameter has been removed from to_dict().
It should not have been exposed in the first place, and I don't expect
many to be affected. Nonetheless, this is a breaking change, and hence
the minor version bump (see note on versioning in the docs).

dataclasses-json - 0.4.5

Published by lidatong over 4 years ago

Fix deprecation warning (#216). Thanks @stevenj

dataclasses-json - 0.4.4

Published by lidatong over 4 years ago

Add config option to exclude fields with a predicate (#221). Thanks
@arusahni

Fix bug with mm_field config when processing overrides

dataclasses-json - 0.4.3

Published by lidatong over 4 years ago

Fix field name override (#209). Thanks @sumnerevans

dataclasses-json - 0.4.2

Published by lidatong over 4 years ago

Revert caching

dataclasses-json - 0.4.1

Published by lidatong over 4 years ago

Performance optimization via caching (#175, #148). Thanks @Germandrummer92 @konstin

dataclasses-json - 0.4.0

Published by lidatong over 4 years ago

Introduce API for global config of encoders by type (#139).

To elaborate, you can now define globally how to encode any unsupported
type, rather than have to specify for every individual field.

dataclasses-json - 0.3.8

Published by lidatong over 4 years ago

Fix nested optional type (#167). Thanks @RunOrVeith

Fix from_dict annotations (#156). Thanks @eqperes

dataclasses-json - 0.3.7

Published by lidatong almost 5 years ago

Introduce API for undefined fields. Thanks @RunOrVeith and
@Germandrummer92

dataclasses-json - 0.3.6

Published by lidatong almost 5 years ago

Fix api type hints. Thanks @JoeyBG

dataclasses-json - 0.3.5

Published by lidatong about 5 years ago

Make type annotations visible to mypy. Thanks @gward

dataclasses-json - 0.3.4

Published by lidatong about 5 years ago

Fix bytes encoder. Thanks @tstehr

dataclasses-json - 0.3.3

Published by lidatong about 5 years ago

Fix issues with decoding generic extended types (datetime, uuid, decimal).

dataclasses-json - 0.3.2

Published by lidatong about 5 years ago

Marshmallow fix. Thanks @yukihiko-shinoda

dataclasses-json - 0.3.1

Published by lidatong about 5 years ago

Introduces PascalCase lettercase config option. Thanks @jansabbe

dataclasses-json - 0.3.0

Published by lidatong about 5 years ago

BREAKING CHANGE

configured_dataclass_json has been removed in favor of a single dataclass_json decorator that optionally takes arguments.

To upgrade to this release, simply replace all occurrences of configured_dataclass_json with dataclass_json (a find-and-replace-in-all-files should suffice).

Note that the no arg version of the decorator:

@dataclass_json
class Example
    ...

will continue to work and requires no code changes

dataclasses-json - 0.2.14

Published by lidatong about 5 years ago

  • Union bugfix. Thanks @FaraSeer
  • Schema datakey. Thanks @Glandos
Package Rankings
Top 1.36% on Pypi.org
Top 37.4% on Anaconda.org
Top 6.51% on Alpine-edge
Top 18.59% on Spack.io
Top 13.49% on Conda-forge.org