swaroopch / edn_format

EDN reader and writer implementation in Python, using PLY (lex, yacc)
https://swaroopch.com/2012/12/24/edn-format-python/
Other
133 stars 31 forks source link

Add the ability to automatically convert string keys to keywords #33

Closed bfontaine closed 7 years ago

bfontaine commented 7 years ago

This adds an optional keyword argument to dumps: keyword_keys. If true, all dicts' string keys are changed to keywords when generating the EDN.

It’s common to use keywords as keys in Clojure but since they don’t exist in Python we usually rely on strings.

swaroopch commented 7 years ago

Thanks, will take a look ASAP.

swaroopch commented 7 years ago

Thanks @bfontaine ! Just FYI, I enabled Travis builds for this repo as well :)

swaroopch commented 7 years ago

@bfontaine Pushed a new version to PyPI : https://pypi.python.org/pypi/edn_format/0.5.10

bfontaine commented 7 years ago

@swaroopch Awesome, thanks :smile: