Files
deb-python-toml/tests/example_test.py
2017-03-29 23:13:21 -04:00

13 lines
275 B
Python
Executable File

#!/usr/bin/env python
"""Decodes toml and outputs it as JSON"""
import toml_test
import toml
import sys
import json
if __name__ == '__main__':
tdata = toml.loads(sys.stdin.detach().read().decode('utf-8'))
tagged = toml_test.tag(tdata)
print(json.dumps(tagged))