vlang / py2v

A Python to V transpiler.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

py2v

py2v is a Python to V source transpiler written (mostly) in V. py2v aims not to have a bug-to-bug 100% accurate transpilation but to create a baseline to ease re-making Python projects in V.

Please see the examples folder to see the least py2v can do.

Installation

Dependencies:

  • V
  • Python 3.6+
git clone https://github.com/vlang/py2v.git
cd py2v
<path to V> -prod py2v.v -o py2v

Usage

./py2v <Python input file> <V output file>

Contributing

PRs are welcome. Please prefix your PR titles with the component you are editing. (docs: improve README.md etc.)

License

MIT License

About

A Python to V transpiler.

License:MIT License


Languages

Language:V 94.3%Language:Python 5.0%Language:Shell 0.7%