.wsgi Python-Skript

Text & Quellcode

MIME-Typtext/x-python
BeschreibungPython-Skript
KategorieText & Quellcode
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)
Basiert aufapplication/x-executable, text/plain
Weitere Endungen.py, .pyx

Häufige Fragen

Was ist eine .wsgi-Datei?

Eine .wsgi-Datei ist ein Format vom Typ „Python-Skript“ (MIME-Typ text/x-python).

Womit öffne ich eine .wsgi-Datei?

Mit jedem Texteditor – etwa Notepad++, Visual Studio Code oder unter Linux gedit und vim. Die Datei enthält lesbaren Text, ggf. Quellcode oder Konfiguration.

Woran erkennt man eine echte .wsgi-Datei?

Am Dateianfang, der sogenannten Signatur (Magic Bytes): 23 21 20 2F 62 69 6E 2F 70 79 74 68 6F 6E (#! /bin/python) und 23 21 2F 62 69 6E 2F 70 79 74 68 6F 6E (#!/bin/python). Unter Linux und macOS prüft file --mime-type example.wsgi den tatsächlichen Typ unabhängig von der Endung.

Auf welchem Format basiert .wsgi?

Technisch ist eine .wsgi-Datei ein Untertyp von „Ausführbare Datei“ (application/x-executable). Programme für dieses Grundformat können die Datei daher oft ebenfalls lesen.

Welcher MIME-Typ gehört zu .wsgi?

Der MIME-Typ ist text/x-python. Im Apache-Webserver: AddType text/x-python .wsgi; in nginx: types { text/x-python wsgi; }.

Benachbarte Einträge