【文件属性】:
文件名称:pytago:用于 Python 到 Go 翻译的源到源转译器
文件大小:157KB
文件格式:ZIP
更新时间:2021-08-05 05:01:28
python go golang programming mit
Pytago 是一个源到源的转译器,可以将一些 Python 转换为人类可读的 Go。
安装使用
有两种“官方”支持的方式来使用 Pytago:
您可以通过 docker 运行的 Web 应用程序
本地安装的命令行工具
Web应用程序
先决条件
安装
git clone https://github.com/nottheswimmer/pytago/
cd pytago
docker build -t pytago .
用法
docker run -p 8080:8080 -e PORT=8080 -it pytago
# User interface
open http://127.0.0.1:8080/
# API
curl --request POST 'http://127.0.0.1:8080/' \
--header 'Content-Type: applicatio