You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/preconf.rst
+8-8
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ For example, to get a converter configured for BSON:
9
9
.. doctest::
10
10
11
11
>>> from cattrs.preconf.bson import make_converter
12
-
>>> converter = make_converter() # Takes the same parameters as the ``GenConverter``
12
+
>>> converter = make_converter() # Takes the same parameters as the ``Converter``
13
13
14
14
Converters obtained this way can be customized further, just like any other converter.
15
15
@@ -43,15 +43,15 @@ Particular libraries may have additional constraints documented below.
43
43
Standard library ``json``
44
44
-------------------------
45
45
46
-
Found at :py:mod:`cattr.preconf.json`.
46
+
Found at :py:mod:`cattrs.preconf.json`.
47
47
48
48
Bytes are serialized as base 85 strings. Counters are serialized as dictionaries. Sets are serialized as lists, and deserialized back into sets. ``datetime`` s are serialized as ISO 8601 strings.
49
49
50
50
51
51
``ujson``
52
52
---------
53
53
54
-
Found at :py:mod:`cattr.preconf.ujson`.
54
+
Found at :py:mod:`cattrs.preconf.ujson`.
55
55
56
56
Bytes are serialized as base 85 strings. Sets are serialized as lists, and deserialized back into sets. ``datetime`` s are serialized as ISO 8601 strings.
57
57
@@ -61,7 +61,7 @@ Bytes are serialized as base 85 strings. Sets are serialized as lists, and deser
61
61
``orjson``
62
62
----------
63
63
64
-
Found at :py:mod:`cattr.preconf.orjson`.
64
+
Found at :py:mod:`cattrs.preconf.orjson`.
65
65
66
66
Bytes are serialized as base 85 strings. Sets are serialized as lists, and deserialized back into sets. ``datetime`` s are serialized as ISO 8601 strings.
67
67
@@ -72,7 +72,7 @@ Bytes are serialized as base 85 strings. Sets are serialized as lists, and deser
72
72
``msgpack``
73
73
-----------
74
74
75
-
Found at :py:mod:`cattr.preconf.msgpack`.
75
+
Found at :py:mod:`cattrs.preconf.msgpack`.
76
76
77
77
Sets are serialized as lists, and deserialized back into sets. ``datetime`` s are serialized as UNIX timestamp float values.
78
78
@@ -84,7 +84,7 @@ When parsing msgpack data from bytes, the library needs to be passed ``strict_ma
84
84
``bson``
85
85
--------
86
86
87
-
Found at :py:mod:`cattr.preconf.bson`. Tested against the ``bson`` module bundled with the ``pymongo`` library, not the standalone PyPI ``bson`` package.
87
+
Found at :py:mod:`cattrs.preconf.bson`. Tested against the ``bson`` module bundled with the ``pymongo`` library, not the standalone PyPI ``bson`` package.
88
88
89
89
Sets are serialized as lists, and deserialized back into sets.
90
90
@@ -100,15 +100,15 @@ When encoding and decoding, the library needs to be passed ``codec_options=bson.
100
100
``pyyaml``
101
101
----------
102
102
103
-
Found at :py:mod:`cattr.preconf.pyyaml`.
103
+
Found at :py:mod:`cattrs.preconf.pyyaml`.
104
104
105
105
Frozensets are serialized as lists, and deserialized back into frozensets.
106
106
107
107
108
108
``tomlkit``
109
109
-----------
110
110
111
-
Found at :py:mod:`cattr.preconf.tomlkit`.
111
+
Found at :py:mod:`cattrs.preconf.tomlkit`.
112
112
113
113
Bytes are serialized as base 85 strings. Sets are serialized as lists, and deserialized back into sets.
114
114
Tuples are serialized as lists, and deserialized back into tuples.
0 commit comments