.pyx Python-Skript
Text & Quellcode
| MIME-Typ | text/x-python |
|---|---|
| Beschreibung | Python-Skript |
| Kategorie | Text & 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 auf | application/x-executable, text/plain |
| Weitere Endungen | .py, .wsgi |
Häufige Fragen
Was ist eine .pyx-Datei?
Eine .pyx-Datei ist ein Format vom Typ „Python-Skript“ (MIME-Typ text/x-python).
Womit öffne ich eine .pyx-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 .pyx-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.pyx den tatsächlichen Typ unabhängig von der Endung.
Auf welchem Format basiert .pyx?
Technisch ist eine .pyx-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 .pyx?
Der MIME-Typ ist text/x-python. Im Apache-Webserver: AddType text/x-python .pyx; in nginx: types { text/x-python pyx; }.