.PY file — Python source
Python program source written as text. Opening in a text viewer is distinct from running it.
Technical information
| Extension | .py |
|---|---|
| Category | Developer |
| MIME type hint | text/x-python |
| PRONOM PUID | fmt/938 |
Not listed in the imported IANA registry: text/x-python. These values are retained as historical, vendor or registry hints; absence from the snapshot is not proof that the file is invalid. Use the signature, source format and current registry to verify. IANA.
How to open or inspect this file
- Keep the original and use File Identifier to inspect the contents. Extensions alone are not conclusive.
- Application to research (verify exact version): VSCodium, Lapce, Zed. Check the version and official compatibility documentation.
- Verify the output on a separate copy; never execute unfamiliar files just to inspect them.
Application compatibility
Documented means checked against the publisher’s documentation, not a local installation test. Candidate means not yet verified.
| Application | Capability | Evidence |
|---|---|---|
| VSCodium | Unverified candidate | Needs version-specific review |
| Lapce | Unverified candidate | Needs version-specific review |
| Zed | Unverified candidate | Needs version-specific review |
Common questions
Can I open this file in FileTypeKit?
The related tools can inspect or process supported subsets; see each tool’s limits.
Will changing the extension convert my file?
No. A filename change leaves the underlying bytes unchanged. Use a compatible converter and keep the original.