.wsgi Python script

Text & source code

MIME typetext/x-python
DescriptionPython script
CategoryText & source code
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)
Based onapplication/x-executable, text/plain
Other extensions.py, .pyx

Frequently asked questions

What is a .wsgi file?

A .wsgi file is a “Python script” (MIME type text/x-python).

How do I open a .wsgi file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .wsgi file?

By the bytes at the start of the file, the signature (magic bytes): 23 21 20 2F 62 69 6E 2F 70 79 74 68 6F 6E (#! /bin/python) and 23 21 2F 62 69 6E 2F 70 79 74 68 6F 6E (#!/bin/python). On Linux and macOS, file --mime-type example.wsgi checks the real type regardless of the extension.

Which format is .wsgi based on?

Technically a .wsgi file is a subtype of “Executable” (application/x-executable), so programs for that base format can often read it too.

Which MIME type belongs to .wsgi?

The MIME type is text/x-python. In the Apache web server: AddType text/x-python .wsgi; in nginx: types { text/x-python wsgi; }.

Nearby entries