-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Import cattrs first pass * More import cattrs * Update test_preconf * Update docs * Remove prints * Fix check-wheel-contents
- Loading branch information
Showing
33 changed files
with
139 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from cattr import ( | ||
Converter, | ||
GenConverter, | ||
UnstructureStrategy, | ||
converters, | ||
disambiguators, | ||
dispatch, | ||
errors, | ||
gen, | ||
global_converter, | ||
override, | ||
preconf, | ||
register_structure_hook, | ||
register_structure_hook_func, | ||
register_unstructure_hook, | ||
register_unstructure_hook_func, | ||
structure, | ||
structure_attrs_fromdict, | ||
structure_attrs_fromtuple, | ||
unstructure, | ||
) | ||
|
||
__all__ = ( | ||
"Converter", | ||
"converters", | ||
"disambiguators", | ||
"dispatch", | ||
"errors", | ||
"gen", | ||
"GenConverter", | ||
"global_converter", | ||
"override", | ||
"preconf", | ||
"register_structure_hook_func", | ||
"register_structure_hook", | ||
"register_unstructure_hook_func", | ||
"register_unstructure_hook", | ||
"structure_attrs_fromdict", | ||
"structure_attrs_fromtuple", | ||
"structure", | ||
"unstructure", | ||
"UnstructureStrategy", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from cattr.converters import Converter, GenConverter, UnstructureStrategy | ||
|
||
__all__ = ["Converter", "GenConverter", "UnstructureStrategy"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from cattr.disambiguators import create_uniq_field_dis_func | ||
|
||
__all__ = ["create_uniq_field_dis_func"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from cattr.dispatch import FunctionDispatch, MultiStrategyDispatch | ||
|
||
__all__ = ["FunctionDispatch", "MultiStrategyDispatch"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from cattr.errors import StructureHandlerNotFoundError | ||
|
||
__all__ = ["StructureHandlerNotFoundError"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from cattr.gen import ( | ||
AttributeOverride, | ||
make_dict_structure_fn, | ||
make_dict_unstructure_fn, | ||
make_hetero_tuple_unstructure_fn, | ||
make_iterable_unstructure_fn, | ||
make_mapping_structure_fn, | ||
make_mapping_unstructure_fn, | ||
override, | ||
) | ||
|
||
__all__ = [ | ||
"AttributeOverride", | ||
"make_dict_structure_fn", | ||
"make_dict_unstructure_fn", | ||
"make_hetero_tuple_unstructure_fn", | ||
"make_iterable_unstructure_fn", | ||
"make_mapping_structure_fn", | ||
"make_mapping_unstructure_fn", | ||
"override", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from cattr.preconf import validate_datetime | ||
|
||
__all__ = ["validate_datetime"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"""Preconfigured converters for bson.""" | ||
from cattr.preconf.bson import configure_converter, make_converter | ||
|
||
__all__ = ["make_converter", "configure_converter"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"""Preconfigured converters for the stdlib json.""" | ||
from cattr.preconf.json import configure_converter, make_converter | ||
|
||
__all__ = ["make_converter", "configure_converter"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"""Preconfigured converters for msgpack.""" | ||
from cattr.preconf.msgpack import configure_converter, make_converter | ||
|
||
__all__ = ["make_converter", "configure_converter"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"""Preconfigured converters for orjson.""" | ||
from cattr.preconf.orjson import configure_converter, make_converter | ||
|
||
__all__ = ["make_converter", "configure_converter"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"""Preconfigured converters for pyyaml.""" | ||
from cattr.preconf.pyyaml import configure_converter, make_converter | ||
|
||
__all__ = ["make_converter", "configure_converter"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"""Preconfigured converters for tomlkit.""" | ||
from cattr.preconf.tomlkit import configure_converter, make_converter | ||
|
||
__all__ = ["make_converter", "configure_converter"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"""Preconfigured converters for ujson.""" | ||
from cattr.preconf.ujson import configure_converter, make_converter | ||
|
||
__all__ = ["make_converter", "configure_converter"] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters