seandstewart / typical

Typical: Fast, simple, & correct data-validation using Python 3 typing.
https://python-typical.org
MIT License
183 stars 9 forks source link

Add support for orjson #178

Closed seandstewart closed 2 years ago

seandstewart commented 2 years ago

This change reworks our tojson factory logic and adds support for the orjson library (resolves #77)

Also -

codecov[bot] commented 2 years ago

Codecov Report

Merging #178 (1e1ff31) into main (93d4ee6) will increase coverage by 0.03%. The diff coverage is 94.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #178      +/-   ##
==========================================
+ Coverage   94.98%   95.01%   +0.03%     
==========================================
  Files          37       37              
  Lines        4125     4150      +25     
  Branches      575      577       +2     
==========================================
+ Hits         3918     3943      +25     
  Misses        128      128              
  Partials       79       79              
Flag Coverage Δ
unittests 94.89% <94.73%> (+0.03%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
typic/klass.py 100.00% <ø> (ø)
typic/serde/resolver.py 94.11% <50.00%> (-0.03%) :arrow_down:
typic/env.py 76.00% <75.00%> (-1.09%) :arrow_down:
typic/__init__.py 100.00% <100.00%> (ø)
typic/api.py 96.20% <100.00%> (+0.51%) :arrow_up:
typic/ext/json.py 100.00% <100.00%> (ø)
typic/ext/schema/field.py 99.28% <100.00%> (ø)

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 93d4ee6...1e1ff31. Read the comment docs.