File extensions / Developer

.PY file — Python source

Python program source written as text. Opening in a text viewer is distinct from running it.

Technical information

Extension.py
CategoryDeveloper
MIME type hinttext/x-python
PRONOM PUIDfmt/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

  1. Keep the original and use File Identifier to inspect the contents. Extensions alone are not conclusive.
  2. Application to research (verify exact version): VSCodium, Lapce, Zed. Check the version and official compatibility documentation.
  3. 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.

ApplicationCapabilityEvidence
VSCodiumUnverified candidateNeeds version-specific review
LapceUnverified candidateNeeds version-specific review
ZedUnverified candidateNeeds 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.

Technical reference

Source specification or registry record · Search registry

Related formats

.JSJavaScript sourceDeveloper.WASMWebAssembly binaryDeveloper.CLASSJava class fileDeveloper.CC sourceDeveloper.CPPC++ sourceDeveloper.JAVAJava sourceDeveloper.RSRust sourceDeveloper.AABAndroid App BundleDeveloper.AARAndroid library archiveDeveloper.BASBASIC sourceDeveloper.BATWindows batch scriptDeveloper.CCC++ sourceDeveloper