json-sempai icon indicating copy to clipboard operation
json-sempai copied to clipboard

Auto code eval

Open lkraider opened this issue 8 years ago • 0 comments

Implements the option to eval any string in the json as code by just calling it:

TEST_FILE='''{
    "code": "lambda x: x + 1"
}'''

>>> from jsonsempai import magic
>>> import tester
>>> tester.code(1)
2

Makes the option to outsource your backend programming directly to your API clients/consumers that much easier.

lkraider avatar Jan 27 '16 01:01 lkraider