.py3 Python 3 script

Text & source code

MIME typetext/x-python3
DescriptionPython 3 script
CategoryText & source code
Signature (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)
Based ontext/x-python
Other extensions.py, .py3x, .pyi

Frequently asked questions

What is a .py3 file?

A .py3 file is a “Python 3 script” (MIME type text/x-python3).

How do I open a .py3 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 .py3 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 33 (#! /bin/python3) and 23 21 2F 62 69 6E 2F 70 79 74 68 6F 6E 33 (#!/bin/python3). On Linux and macOS, file --mime-type example.py3 checks the real type regardless of the extension.

Which format is .py3 based on?

Technically a .py3 file is a subtype of “Python script” (text/x-python), so programs for that base format can often read it too.

Which MIME type belongs to .py3?

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

Nearby entries