Convert Visual FoxPro(VFP) code into python code
vfp2py is an attempt to create a tool to automatically create python code from foxpro 9 code.
Many but not nearly all commands are currently supported with missing commands to be added as need arises. Conversion can be done on individual prg files or whole projects pjx files.
python -m pip install vfp2py
$ vfp2py --help
usage: vfp2py [-h] [--logging] infile outpath [search [search ...]]
Tool for rewriting Foxpro code in Python
positional arguments:
infile file to convert - supported file types are prg, mpr, spr, scx,
vcx, or pjx,
outpath path to output converted code, will be a filename for all but
pjx which will be a directory
search directory to search for included files
optional arguments:
-h, --help show this help message and exit
--logging file to convert
To convert a file simply run vfp2py --logging input_file.prg output_file.py
or vfp2py --logging input_project.pjx output_directory
Jayanta Narayan Choudhuri for providing a list of keyword and function abbreviations.