.wsgi script Python
Texte et code source
| Type MIME | text/x-python |
|---|---|
| Description | script Python |
| Catégorie | Texte et code source |
| 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) |
| Basé sur | application/x-executable, text/plain |
| Autres extensions | .py, .pyx |
Questions fréquentes
Qu’est-ce qu’un fichier .wsgi ?
Un fichier .wsgi est un format de type « script Python » (type MIME text/x-python).
Comment ouvrir un fichier .wsgi ?
Avec n’importe quel éditeur de texte : Notepad++, Visual Studio Code, ou gedit et vim sous Linux. Le fichier contient du texte lisible, éventuellement du code source ou une configuration.
Comment reconnaître un vrai fichier .wsgi ?
Aux octets du début du fichier, la signature (magic bytes) : 23 21 20 2F 62 69 6E 2F 70 79 74 68 6F 6E (#! /bin/python) et 23 21 2F 62 69 6E 2F 70 79 74 68 6F 6E (#!/bin/python). Sous Linux et macOS, file --mime-type example.wsgi vérifie le type réel indépendamment de l’extension.
Sur quel format .wsgi est-il basé ?
Techniquement, un fichier .wsgi est un sous-type de « Executable » (application/x-executable) ; les programmes conçus pour ce format de base peuvent donc souvent le lire aussi.
Quel type MIME correspond à .wsgi ?
Le type MIME est text/x-python. Dans le serveur web Apache : AddType text/x-python .wsgi ; dans nginx : types { text/x-python wsgi; }.