-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs and a import re-ordering for dict codec
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
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
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) |
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