text/x-python
Python-script
| Beschrijving | Python-script |
|---|---|
| Bestandsextensies | .py, .pyx, .wsgi |
| Gebaseerd op | application/x-executable, text/plain |
| Signatuur (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) |
Veelgestelde vragen
Wat is het MIME-type text/x-python?
text/x-python staat voor „Python-script”.
Welke bestandsextensie heeft text/x-python?
Bestanden van het type text/x-python eindigen meestal op .py, .pyx en .wsgi.
Hoe levert een webserver text/x-python correct uit?
Met de header Content-Type: text/x-python. In nginx: types { text/x-python py pyx wsgi; }; in Apache: AddType text/x-python .py .pyx .wsgi.
Welke formaten zijn gebaseerd op text/x-python?
Formaten die erop voortbouwen, zijn onder andere Python 3-script, SageMath-script en SCons-configuratiebestand.
Formaten die erop voortbouwen
- text/x-python3 – Python 3-script
- text/x-sagemath – SageMath-script
- text/x-scons – SCons-configuratiebestand