piview.Storage

Module Contents

Classes

Storage

class piview.Storage.Storage[source]
static ram()[source]

Provide the total RAM and free RAM to the user as a tuple

Return type

tuple

Returns

(Total, Free)

static disc()[source]

Provide the total disc space and the disc space that is free

Return type

tuple

Returns

(Total, Free)

static all_discs()[source]

Provide the user with the storage space (Total, Free) for each disc attached to the Pi as a dictionary.

The dictionary will have: “disc name” : (total storage, free storage) for each disc.

Return disc stats

dictionary of tuples

static disk()[source]

Alias for disc()

see disc()

static all_disks()[source]

Alias for all_discs()

see all_discs()