Skip to content

v2.0

Compare
Choose a tag to compare
@KenKundert KenKundert released this 28 May 19:00
· 266 commits to master since this release
  • Deprecate quoted keys.
  • Add multiline keys to replace quoted keys.
  • Add inline lists and dictionaries.
  • Move from renderers to converters in dump and dumps. Both allow you to support arbitrary data types. With renderers you provide functions that are responsible for directly creating the text to be inserted in the NestedText output. This can be complicated and error prone. With converters you instead convert the object to a known NestedText data type (dict, list, str, ...) and the dump function automatically formats it appropriately.
  • Restructure documentation.

Be aware that aspects of this version are not backward compatible.

  1. It no longer supports quoted dictionary keys.
  2. The renderers argument to :func:dump and :func:dumps has been replaced by converters.
  3. It no longer allows one to specify level in :func:dump and :func:dumps.