You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ORPA-pyOpenRPA/Resources/LPy64-3105/lib/python3.10/site-packages/fastjsonschema/__main__.py

20 lines
312 B

import json
import sys
from . import compile_to_code
def main():
if len(sys.argv) == 2:
definition = sys.argv[1]
else:
definition = sys.stdin.read()
definition = json.loads(definition)
code = compile_to_code(definition)
print(code)
if __name__ == '__main__':
main()