Skip to content

Commit

Permalink
Docs and a import re-ordering for dict codec
Browse files Browse the repository at this point in the history
  • Loading branch information
timsavage committed Feb 5, 2018
1 parent e16971b commit fa1e36a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions docs/ref/codecs/dict_codec.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
##########
Dict Codec
##########

Codec for serialising and de-serialising Dictionary and List objects.

.. automodule:: odin.codecs.dict_codec

Methods
=======

.. autofunction:: load

.. autofunction:: dump


Example usage
=============

Loading a resource from a file::

from odin.codecs import dict_codec

my_dict = {}

resource = dict_codec.load(my_dict, MyResource)
2 changes: 1 addition & 1 deletion odin/codecs/dict_codec.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import six
from odin.utils import getmeta

from odin import bases
from odin import resources, ResourceAdapter
from odin.utils import getmeta


TYPE_SERIALIZERS = {}
Expand Down

0 comments on commit fa1e36a

Please sign in to comment.