IT

.wsgi Script Python

Testo e codice sorgente

Tipo MIMEtext/x-python
DescrizioneScript Python
CategoriaTesto e codice sorgente
Firma (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)
Basato suapplication/x-executable, text/plain
Altre estensioni.py, .pyx

Domande frequenti

Che cos’è un file .wsgi?

Un file .wsgi è un formato di tipo «Script Python» (tipo MIME text/x-python).

Come apro un file .wsgi?

Con qualsiasi editor di testo: Notepad++, Visual Studio Code, oppure gedit e vim su Linux. Il file contiene testo leggibile, eventualmente codice sorgente o configurazione.

Come si riconosce un vero file .wsgi?

Dai byte all’inizio del file, la firma (magic bytes): 23 21 20 2F 62 69 6E 2F 70 79 74 68 6F 6E (#! /bin/python) e 23 21 2F 62 69 6E 2F 70 79 74 68 6F 6E (#!/bin/python). Su Linux e macOS, file --mime-type example.wsgi verifica il tipo reale indipendentemente dall’estensione.

Su quale formato si basa .wsgi?

Tecnicamente un file .wsgi è un sottotipo di «Eseguibile» (application/x-executable), quindi i programmi per quel formato di base spesso riescono a leggerlo.

Quale tipo MIME corrisponde a .wsgi?

Il tipo MIME è text/x-python. Nel server web Apache: AddType text/x-python .wsgi; in nginx: types { text/x-python wsgi; }.

Voci vicine