Did I find the right examples for you? yes no

All Samples(51)  |  Call(51)  |  Derive(0)  |  Import(0)
Return mounted partitions as a list of namedtuples including
device, mount point, filesystem type and mount options (a raw
string separated by commas which may vary depending on the platform).

If "all" parameter is False return physical devices only and ignore
all others.

        def disk_partitions(all=False):
    """Return mounted partitions as a list of namedtuples including
    device, mount point, filesystem type and mount options (a raw
    string separated by commas which may vary depending on the platform).

    If "all" parameter is False return physical devices only and ignore
    all others.
    """
    return _psplatform.disk_partitions(all)
        


src/p/s/psutil-2.1.1/examples/disk_usage.py   psutil(Download)
def main():
    templ = "%-17s %8s %8s %8s %5s%% %9s  %s"
    print_(templ % ("Device", "Total", "Used", "Free", "Use ", "Type",
                    "Mount"))
    for part in psutil.disk_partitions(all=False):

src/p/s/psutil-HEAD/examples/disk_usage.py   psutil(Download)
def main():
    templ = "%-17s %8s %8s %8s %5s%% %9s  %s"
    print_(templ % ("Device", "Total", "Used", "Free", "Use ", "Type", "Mount"))
    for part in psutil.disk_partitions(all=False):
        usage = psutil.disk_usage(part.mountpoint)

src/p/y/pyriemann-HEAD/examples/riemann_health.py   pyriemann(Download)
def disk(warning=0.9, critical=0.95):
    for p in psutil.disk_partitions():
        u = psutil.disk_usage(p.mountpoint)
        perc = u.percent
        f = perc/100.0

src/b/a/baruwa-2.0.1/baruwa/tasks/status.py   baruwa(Download)
    stats['net'] = infs
    partitions = []
    for part in psutil.disk_partitions(all=False):
        usage = psutil.disk_usage(part.mountpoint)
        dpart = _obj2dict(part)

src/p/y/pysysbot-0.1.3/pysysbot/pysysbot.py   pysysbot(Download)
        templ = "%-35s %8s %8s %8s %5s%% %9s  %s\n"
        disks = templ % ("Device", "Total", "Used", "Free", "Use ", "Type", "Mount")
        for part in psutil.disk_partitions(all=False):
            usage = psutil.disk_usage(part.mountpoint)
            disks = disks + templ % (part.device,

src/b/a/baruwa2-HEAD/baruwa/tasks/status.py   baruwa2(Download)
    stats['net'] = infs
    partitions = []
    for part in psutil.disk_partitions(all=False):
        usage = psutil.disk_usage(part.mountpoint)
        dpart = _obj2dict(part)

src/g/l/Glances-1.7.6/glances/glances.py   Glances(Download)
 
        # Open the current mounted FS
        fs_stat = psutil.disk_partitions(all=True)
        for fs in range(len(fs_stat)):
            fs_current = {}

src/h/t/HTPC-Manager-HEAD/modules/stats.py   HTPC-Manager(Download)
        try:
 
            for disk in psutil.disk_partitions(all=True):
 
                # To stop windows barf on empy cdrom            #File system that will be ignored  #Mountpoint that should be ignored, linux

src/g/l/glances-HEAD/glances/glances.py   glances(Download)
 
        # Open the current mounted FS
        fs_stat = psutil.disk_partitions(all=True)
        for fs in range(len(fs_stat)):
            fs_current = {}

src/s/i/simocollector-1.2.3/simocollector/collectors.py   simocollector(Download)
    def get_disk_usage(self):
        _columns = ('total', 'used', 'free')
        data = {}
 
        for part in psutil.disk_partitions(all=False):

  1 | 2 | 3 | 4 | 5  Next