.pyi Python-3-Skript

Text & Quellcode

MIME-Typtext/x-python3
BeschreibungPython-3-Skript
KategorieText & Quellcode
Signatur (Magic Bytes)23 21 20 2F 62 69 6E 2F 70 79 74 68 6F 6E 33 (#! /bin/python3)
23 21 2F 62 69 6E 2F 70 79 74 68 6F 6E 33 (#!/bin/python3)
Basiert auftext/x-python
Weitere Endungen.py, .py3, .py3x

Häufige Fragen

Was ist eine .pyi-Datei?

Eine .pyi-Datei ist ein Format vom Typ „Python-3-Skript“ (MIME-Typ text/x-python3).

Womit öffne ich eine .pyi-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 .pyi-Datei?

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

Auf welchem Format basiert .pyi?

Technisch ist eine .pyi-Datei ein Untertyp von „Python-Skript“ (text/x-python). Programme für dieses Grundformat können die Datei daher oft ebenfalls lesen.

Welcher MIME-Typ gehört zu .pyi?

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

Benachbarte Einträge