Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 319 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 319 Bytes

python-rison

Python version of the rison encoder/decoder originally taken from http://mjtemplate.org/examples/rison.html

Usage

import rison

print rison.dumps({'foo': 'bar'})  # '(foo:bar)'

print rison.loads('(foo:bar)')  # {'foo': 'bar'}

Tests

pip install nose
nosetests tests/*.py