Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

v2beta-json: Add optimized method for dumping any value to JSON (#41) #44

Merged
merged 3 commits into from
Mar 20, 2020

Conversation

seandstewart
Copy link
Owner

@seandstewart seandstewart commented Mar 20, 2020

This addresses #41

Features:

  • Optional lazy evaluation of fields when serializing with typic.primitive or MyObj.primitive
  • New high-level typic.tojson and MyObj.tojson methods for fast, easy serialization.
  • New json extra for automatically installing typical's json serializer of choice.

@seandstewart seandstewart force-pushed the v2beta-json branch 2 times, most recently from 60fde6d to b21f9ff Compare March 20, 2020 17:33
@codecov
Copy link

codecov bot commented Mar 20, 2020

Codecov Report

Merging #44 into master will decrease coverage by 0.1%.
The diff coverage is 97.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #44      +/-   ##
==========================================
- Coverage   98.66%   98.56%   -0.11%     
==========================================
  Files          34       35       +1     
  Lines        2852     2998     +146     
==========================================
+ Hits         2814     2955     +141     
- Misses         38       43       +5
Flag Coverage Δ
#unittests 98.56% <97.61%> (-0.11%) ⬇️
Impacted Files Coverage Δ
typic/util.py 96.26% <100%> (-0.17%) ⬇️
typic/api.py 96.49% <100%> (+0.02%) ⬆️
typic/serde/resolver.py 97.12% <100%> (+0.25%) ⬆️
typic/mypy.py 96.02% <100%> (+0.34%) ⬆️
typic/serde/common.py 100% <100%> (ø) ⬆️
typic/ext/json.py 100% <100%> (ø)
typic/ext/schema/field.py 99.2% <80%> (-0.8%) ⬇️
typic/serde/ser.py 98.23% <97.32%> (-1.77%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2838a0...34804ec. Read the comment docs.

@seandstewart seandstewart changed the title v2beta-json: Add optimized method for dumping any value to JSON v2beta-json: Add optimized method for dumping any value to JSON (#41) Mar 20, 2020
@seandstewart seandstewart merged commit 5ec3722 into master Mar 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant