{"repo":"go-python/gpython","free":true,"listed":false,"github":"https://github.com/go-python/gpython","clone":"git clone https://github.com/go-python/gpython.git","description":"gpython is a python interpreter written in go \"batteries not included\"","language":"Go","stars":1013,"topics":["python","python3","golang","interpreter"],"license":"BSD-3-Clause","category":"dev-tools","readme_excerpt":"gpython gpython is a part re-implementation, part port of the Python 3.4 interpreter in Go. Although there are many areas of improvement, it stands as an noteworthy achievement in capability and potential. gpython includes: lexer, parser, and compiler runtime and high-level convenience functions multi-context interpreter instancing easy embedding into your Go application interactive mode (REPL) (try online!) gpython does not include many python modules as many of the core modules are written in C not python. The converted modules are: builtins marshal math time sys Install Download directly from the releases page Or if you have Go installed: go install github.com/go-python/gpython Objectives gpython started as an experiment to investigate how hard porting Python to Go might be. It turns out that all those C modules are a significant barrier to making gpython a complete replacement to CPython. However, to those who want to embed a highly popular and known language into their Go application, gpython could be a great choice over less capable (or lesser known) alternatives. Status gpython currently: - Parses all the code in the Python 3.4 distribution - Runs Python 3 for the modules that are currently supported - Supports concurrent multi-interpreter (\"multi-context\") execution Speed hasn't been a goal of the conversions however it runs pystone at about 20% of the speed of CPython. A π computation test runs quicker under gpython as the Go long integer primitives are likely faster","default_branch":null,"files":null,"tree":[],"storefront":"/r/go-python","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/go-python/gpython/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}