text/x-python
script Python
| Descrição | script Python |
|---|---|
| Extensões | .py, .pyx, .wsgi |
| Baseado em | application/x-executable, text/plain |
| Assinatura (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) |
Perguntas frequentes
O que é o tipo MIME text/x-python?
text/x-python designa “script Python”.
Qual extensão text/x-python usa?
Arquivos do tipo text/x-python normalmente terminam em .py, .pyx e .wsgi.
Como um servidor web entrega text/x-python corretamente?
Com o cabeçalho Content-Type: text/x-python. No nginx: types { text/x-python py pyx wsgi; }; no Apache: AddType text/x-python .py .pyx .wsgi.
Quais formatos se baseiam em text/x-python?
Entre os formatos baseados nele estão Python 3 script, SageMath script e ficheiro de configuração SCons.
Formatos baseados nele
- text/x-python3 – Python 3 script
- text/x-sagemath – SageMath script
- text/x-scons – ficheiro de configuração SCons