Format reference
PY Format Hub
Python (.py) scripts contain human-readable source code interpreted by the Python runtime. Widely used for automation, web backends, and data science, they support dynamic typing and extensive libraries. Use sample .py files to test syntax highlighting, linting, execution environments, and import resolution.
6
Files
336
Downloads (30d)
text/x-python
Related Formats in Code
PY Related Formats
Related Comparisons
PY Format Comparisons
Ruby vs Python Files
Open ComparisonFormat Strategy Links
PY Format Guides
Conversion Guides
Implementation Notes
PY Implementation Notes
Use the manifest endpoint for deterministic fixture selection in CI, then validate MIME/type detection against actual parser output.
If this format appears in multiple categories, prefer category-specific hub pages to keep test assumptions aligned with real usage.