Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

CompactData Example in Python

A very basic Python example importing the PyPI package and using print to output to console, using the two methods loads and dumps. Source code for compactdata-python available on GitHub

import compactdata

print(compactdata.loads("foo=bar"))
# -> { 'foo': 'bar' }
print(compactdata.dumps({'foo': 'bar'}))
# -> foo=bar