Skip to content

Commit 792a5f4

Browse files
committed
Doc tweaks
1 parent a6c3116 commit 792a5f4

File tree

7 files changed

+220
-82
lines changed

7 files changed

+220
-82
lines changed

docs/cattrs.preconf.rst

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
cattrs.preconf package
2+
======================
3+
4+
Submodules
5+
----------
6+
7+
cattrs.preconf.bson module
8+
--------------------------
9+
10+
.. automodule:: cattrs.preconf.bson
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
cattrs.preconf.json module
16+
--------------------------
17+
18+
.. automodule:: cattrs.preconf.json
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
cattrs.preconf.msgpack module
24+
-----------------------------
25+
26+
.. automodule:: cattrs.preconf.msgpack
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
31+
cattrs.preconf.orjson module
32+
----------------------------
33+
34+
.. automodule:: cattrs.preconf.orjson
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:
38+
39+
cattrs.preconf.pyyaml module
40+
----------------------------
41+
42+
.. automodule:: cattrs.preconf.pyyaml
43+
:members:
44+
:undoc-members:
45+
:show-inheritance:
46+
47+
cattrs.preconf.tomlkit module
48+
-----------------------------
49+
50+
.. automodule:: cattrs.preconf.tomlkit
51+
:members:
52+
:undoc-members:
53+
:show-inheritance:
54+
55+
cattrs.preconf.ujson module
56+
---------------------------
57+
58+
.. automodule:: cattrs.preconf.ujson
59+
:members:
60+
:undoc-members:
61+
:show-inheritance:
62+
63+
Module contents
64+
---------------
65+
66+
.. automodule:: cattrs.preconf
67+
:members:
68+
:undoc-members:
69+
:show-inheritance:

docs/cattrs.rst

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
cattrs package
2+
==============
3+
4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
:maxdepth: 4
9+
10+
cattrs.preconf
11+
12+
Submodules
13+
----------
14+
15+
cattrs.converters module
16+
------------------------
17+
18+
.. automodule:: cattrs.converters
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
cattrs.disambiguators module
24+
----------------------------
25+
26+
.. automodule:: cattrs.disambiguators
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
31+
cattrs.dispatch module
32+
----------------------
33+
34+
.. automodule:: cattrs.dispatch
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:
38+
39+
cattrs.errors module
40+
--------------------
41+
42+
.. automodule:: cattrs.errors
43+
:members:
44+
:undoc-members:
45+
:show-inheritance:
46+
47+
cattrs.gen module
48+
-----------------
49+
50+
.. automodule:: cattrs.gen
51+
:members:
52+
:undoc-members:
53+
:show-inheritance:
54+
55+
Module contents
56+
---------------
57+
58+
.. automodule:: cattrs
59+
:members:
60+
:undoc-members:
61+
:show-inheritance:

docs/modules.rst

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
cattrs
2+
======
3+
4+
.. toctree::
5+
:maxdepth: 4
6+
7+
cattrs
8+
19
cattr
210
=====
311

docs/preconf.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For example, to get a converter configured for BSON:
99
.. doctest::
1010

1111
>>> 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``
1313

1414
Converters obtained this way can be customized further, just like any other converter.
1515

@@ -43,15 +43,15 @@ Particular libraries may have additional constraints documented below.
4343
Standard library ``json``
4444
-------------------------
4545

46-
Found at :py:mod:`cattr.preconf.json`.
46+
Found at :py:mod:`cattrs.preconf.json`.
4747

4848
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.
4949

5050

5151
``ujson``
5252
---------
5353

54-
Found at :py:mod:`cattr.preconf.ujson`.
54+
Found at :py:mod:`cattrs.preconf.ujson`.
5555

5656
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.
5757

@@ -61,7 +61,7 @@ Bytes are serialized as base 85 strings. Sets are serialized as lists, and deser
6161
``orjson``
6262
----------
6363

64-
Found at :py:mod:`cattr.preconf.orjson`.
64+
Found at :py:mod:`cattrs.preconf.orjson`.
6565

6666
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.
6767

@@ -72,7 +72,7 @@ Bytes are serialized as base 85 strings. Sets are serialized as lists, and deser
7272
``msgpack``
7373
-----------
7474

75-
Found at :py:mod:`cattr.preconf.msgpack`.
75+
Found at :py:mod:`cattrs.preconf.msgpack`.
7676

7777
Sets are serialized as lists, and deserialized back into sets. ``datetime`` s are serialized as UNIX timestamp float values.
7878

@@ -84,7 +84,7 @@ When parsing msgpack data from bytes, the library needs to be passed ``strict_ma
8484
``bson``
8585
--------
8686

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.
8888

8989
Sets are serialized as lists, and deserialized back into sets.
9090

@@ -100,15 +100,15 @@ When encoding and decoding, the library needs to be passed ``codec_options=bson.
100100
``pyyaml``
101101
----------
102102

103-
Found at :py:mod:`cattr.preconf.pyyaml`.
103+
Found at :py:mod:`cattrs.preconf.pyyaml`.
104104

105105
Frozensets are serialized as lists, and deserialized back into frozensets.
106106

107107

108108
``tomlkit``
109109
-----------
110110

111-
Found at :py:mod:`cattr.preconf.tomlkit`.
111+
Found at :py:mod:`cattrs.preconf.tomlkit`.
112112

113113
Bytes are serialized as base 85 strings. Sets are serialized as lists, and deserialized back into sets.
114114
Tuples are serialized as lists, and deserialized back into tuples.

0 commit comments

Comments
 (0)