This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""A simple HTTP server with REST and json for python 3. | |
addrecord takes utf8-encoded URL parameters | |
getrecord returns utf8-encoded json. | |
""" | |
import argparse | |
import json |