jfor.org

Code

What is a .py file?

A .py file is a Python Source Code File. This is a code, script or executable format.

How to open a .py file

  • VS Code opens and highlights nearly every text-based code format.
  • Never run a script you didn't write or trust.

The registry records this extension against Python Source Code File, so software from that family is the most likely match.

How to convert a .py file

  • Text-based code needs no conversion — just save with a different extension if a tool insists.

The technical record

For archivists, developers and the merely curious: these are the PRONOM registry entries for .py.

Format nameVersionMIME typePUID
Python Source Code Filefmt/938

Got another one?