.py
Python Script
Code & web·text/x-python
What is a .py file
A source file written in the Python programming language, run by the Python interpreter.
How to open a .py file
PythonVS CodePyCharmany text editor
Extension
.py
Category
Code & web
MIME
text/x-python
Other Code & web formats
FAQ — .py
What is a .py file?
.py is a Python Script. A source file written in the Python programming language, run by the Python interpreter.
What program opens a .py file?
.py files open with: Python, VS Code, PyCharm, any text editor.
What is the MIME type of .py?
The MIME type of .py is "text/x-python" — the identifier browsers and servers use for this format.