text/x-python
Python-Skript
| Beschreibung | Python-Skript |
|---|---|
| Dateiendungen | .py, .pyx, .wsgi |
| Basiert auf | application/x-executable, text/plain |
| Signatur (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) |
Häufige Fragen
Was ist der MIME-Typ text/x-python?
text/x-python bezeichnet „Python-Skript“.
Welche Dateiendung hat text/x-python?
Dateien vom Typ text/x-python enden üblicherweise auf .py, .pyx und .wsgi.
Wie liefert ein Webserver text/x-python korrekt aus?
Mit dem Header Content-Type: text/x-python. In nginx: types { text/x-python py pyx wsgi; }; in Apache: AddType text/x-python .py .pyx .wsgi.
Welche Formate basieren auf text/x-python?
Darauf bauen unter anderem diese Formate auf: Python-3-Skript, SageMath-Skript und SCons-Konfigurationsdatei.
Formate, die darauf aufbauen
- text/x-python3 – Python-3-Skript
- text/x-sagemath – SageMath-Skript
- text/x-scons – SCons-Konfigurationsdatei