text/x-python
Python script
| Description | Python script |
|---|---|
| File extensions | .py, .pyx, .wsgi |
| Based on | application/x-executable, text/plain |
| Signature (magic bytes) | 23 21 20 2F 62 69 6E 2F 70 79 74 68 6F 6E (#! /bin/python)23 21 2F 62 69 6E 2F 70 79 74 68 6F 6E (#!/bin/python) |
Frequently asked questions
What is the MIME type text/x-python?
text/x-python denotes “Python script”.
Which file extension does text/x-python use?
Files of type text/x-python usually end in .py, .pyx and .wsgi.
How does a web server serve text/x-python correctly?
With the header Content-Type: text/x-python. In nginx: types { text/x-python py pyx wsgi; }; in Apache: AddType text/x-python .py .pyx .wsgi.
Which formats are based on text/x-python?
Formats based on it include Python 3 script, SageMath script and SCons configuration file.
Formats based on it
- text/x-python3 – Python 3 script
- text/x-sagemath – SageMath script
- text/x-scons – SCons configuration file