spython.image package

Module contents

class spython.image.Image(image=None)[source]

Bases: spython.image.ImageBase

get_hash(image=None)[source]

return an md5 hash of the file based on a criteria level. This is intended to give the file a reasonable version. This only is useful for actual image files.

Parameters:image (the image path to get hash for (first priority). Second) – priority is image path saved with image object, if exists.
class spython.image.ImageBase[source]

Bases: object

parse_image_name(image)[source]

simply split the uri from the image. Singularity handles parsing of registry, namespace, image.

Parameters:image (the complete image uri to load (e.g., docker://ubuntu))