Python file extensions

Common python file/script extensions and the meaning.

  • *.py - Regular python script/file/module extension;
  • *.pyc - Compiled bytecode;
  • *.pyo - Optimized pyc bytecode;
  • *.pyw - Python script/file/module for MS Windows platform (pythonw.exe);
  • *.pyd - Python script made as a Windows DLL;
  • *.pyz - Python script archive containing compressed scripts (zip);

See List of Python Script File-Extensions for more.

python