{ "packages": ["numpy", "gmpy2", "mpyc"], "files": {"sort.py": "", "aes.py": "", "np_aes.py": "", "secretsanta.py": ""} }

MPyC REPL from PyScript

Run Python in a PyScript terminal, preloaded with MPyC and demos sort.py, aes.py, np_aes.py, secretsanta.py.

Python code runs entirely in the browser.

Try out things like
>>> mpc.run(mpc.output(secint(42)**2))
and
>>> mpc.run(mpc.output([seccl(seccl.group.generator)^i for i in range(4)]))
and
>>> mpc.run(np_aes.main())