File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
55and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ 0.7.0] ( https://github.com/fabiocaccamo/python-benedict/releases/tag/0.6.0 ) - 2019-09-10
8+ - Added ` yaml ` I/O support.
9+
710## [ 0.6.0] ( https://github.com/fabiocaccamo/python-benedict/releases/tag/0.6.0 ) - 2019-09-10
811- Added ` IODict ` with ` json ` support.
912- Added ` clone ` (` deepcopy ` alias) and ` merge ` (` deepupdate ` alias) methods.
Original file line number Diff line number Diff line change @@ -111,6 +111,24 @@ benedict.from_json(s)
111111s = d.to_json(filepath = ' ' , ** kwargs)
112112```
113113
114+ - ##### from_yaml
115+
116+ ``` python
117+ # Try to load/decode a yaml encoded string and return it as dict instance.
118+ # Accept as first argument: url, filepath or string.
119+ # A ValueError is raised in case of failure.
120+ benedict.from_yaml(s)
121+ ```
122+
123+ - ##### to_yaml
124+
125+ ``` python
126+ # Return the dict instance encoded in yaml format and optionally save it at the specified filepath.
127+ # It's possible to pass custom options to the encoder using kwargs.
128+ # A ValueError is raised in case of failure.
129+ s = d.to_yaml(filepath = ' ' , ** kwargs)
130+ ```
131+
114132#### Utility methods
115133These methods are common utilities that will speed up your everyday work.
116134
Original file line number Diff line number Diff line change 66__email__ = 'fabio.caccamo@gmail.com'
77__license__ = 'MIT'
88__title__ = 'benedict'
9- __version__ = '0.6 .0'
9+ __version__ = '0.7 .0'
You can’t perform that action at this time.
0 commit comments