Python Package

Index

python_environments.get()

Get the bundled data for the specified image.

python_environments.ImageData

Type for image data.

python_environments.data

Module containing the bundled data as resources.

python_environments.generate

Generation of introespection data for the current environment.

python_environments

Collection of description files for common Python environments.

Functions

python_environments.get(name: str) ImageData

Get the bundled data for the specified image.

Parameters:

name – Image name, including the version (eg. debian:10).

Types

class python_environments.ImageData

Bases: Mapping

property image: str

Image name, including the version (eg. debian:10).

property manifest: str

Manifest of the container from where this data was gathered.

python_environments.data

Module containing the bundled data as resources (see importlib.resources).

Example Usage

import importlib.resources

import python_environments.data


data = importlib.resources.files(python_environments.data)
data.joinpath('debian:10.json').read_text()

python_environments.generate

Generation of introespection data for the current environment.

Usage

$ python -m python_environments.generate
exception python_environments.generate.LookupWarning(key: str, exc: Exception)
python_environments.generate.introspect() dict[str, dict[str, Any]]

Introspect the current environment.

Returns:

Environment data.