Version

class pyto_runtime.Version(bundle_path: str, main_bundle_path: str, string: str)

A Python version.

PytoRuntime currently only supports one minor version per app bundle: 3.14.0 and 3.14.1 are treated as the same version and using them together results in undefined behaviour.

property alpha

Alpha release.

property beta

Beta release.

property bundle_path: str

The path of the Python framework bundle.

property end_of_life: bool

Indicates whether the version was compiled from an end of life branch.

property full_version_string: str

The full version string (fetched from full_version.txt in the framework bundle).

(v<major>.<minor>.<micro><release>).

property main_bundle_path: str

The bundle in which the Python version was found.

property major: int

Major version.

property micro: int

Micro release.

property minor: int

Minor version.

property rc

Rc release.

property string: str

The Python ‘<major>.<minor>.<micro>’ version string retrieved from Info.plist.