Skip to content

Python¤

PythonDistribution dataclass ¤

PythonDistribution(
    version: Version,
    processor: str,
    platform: Platform,
    packages: list[Package],
)

Metadata about the python interpreter being used to run the tests.

Attributes:

Name Type Description
packages list[Package]

The packages installed in the python interpreter.

platform Platform

The platform of the python interpreter.

processor str

The processor architecture of the python interpreter.

version Version

The version of the python interpreter being used to run the tests.

packages instance-attribute ¤

packages: list[Package]

The packages installed in the python interpreter.

platform instance-attribute ¤

platform: Platform

The platform of the python interpreter.

processor instance-attribute ¤

processor: str

The processor architecture of the python interpreter.

version instance-attribute ¤

version: Version

The version of the python interpreter being used to run the tests.

Version dataclass ¤

Version(
    major: int,
    minor: int,
    micro: int,
    releaselevel: Releaselevel,
)

The version of the python interpreter being used to run the tests.

Attributes:

Name Type Description
major int

The major version of the python interpreter.

micro int

The micro version of the python interpreter.

minor int

The minor version of the python interpreter.

releaselevel Releaselevel

The release level of the python interpreter.

major instance-attribute ¤

major: int

The major version of the python interpreter.

micro instance-attribute ¤

micro: int

The micro version of the python interpreter.

minor instance-attribute ¤

minor: int

The minor version of the python interpreter.

releaselevel instance-attribute ¤

releaselevel: Releaselevel

The release level of the python interpreter.

Releaselevel ¤

Bases: Enum

The release level of the python interpreter.

Attributes:

Name Type Description
alpha
beta
candidate
final

alpha class-attribute instance-attribute ¤

alpha = 'alpha'

beta class-attribute instance-attribute ¤

beta = 'beta'

candidate class-attribute instance-attribute ¤

candidate = 'candidate'

final class-attribute instance-attribute ¤

final = 'final'

Platform ¤

Bases: Enum

The platform of the python interpreter.

Attributes:

Name Type Description
darwin
java
linux
unknown
windows

darwin class-attribute instance-attribute ¤

darwin = 'darwin'

java class-attribute instance-attribute ¤

java = 'java'

linux class-attribute instance-attribute ¤

linux = 'linux'

unknown class-attribute instance-attribute ¤

unknown = 'unknown'

windows class-attribute instance-attribute ¤

windows = 'windows'