Skip to content

Commit 66c8f43

Browse files
committed
Updated version, CHANGELOG and README. [ci skip]
1 parent 53c4ed4 commit 66c8f43

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and 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.

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,24 @@ benedict.from_json(s)
111111
s = 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
115133
These methods are common utilities that will speed up your everyday work.
116134

benedict/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
__email__ = 'fabio.caccamo@gmail.com'
77
__license__ = 'MIT'
88
__title__ = 'benedict'
9-
__version__ = '0.6.0'
9+
__version__ = '0.7.0'

0 commit comments

Comments
 (0)