procfs

Python API for the Linux /proc virtual filesystem
Download

procfs Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Philippe Muller
  • Publisher web site:
  • https://github.com/pmuller/

procfs Tags


procfs Description

procfs is a Python API for the Linux /proc virtual filesystem.Easy to use > > > from procfs import Proc > > > proc = Proc() > > > proc.loadavg{'average': {1: 0.0, 5: 0.0, 15: 0.0}, 'entities': {'current': 1, 'total': 117}, 'last_pid': 3068} > > > proc.net.dev.eth1.receive.bytes117997558 > > > proc.meminfo.MemFree57044 > > > proc.net.snmp.Udp{'InDatagrams': 3394, 'OutDatagrams': 3399, 'RcvbufErrors': 0, 'InErrors': 0, 'SndbufErrors': 0, 'NoPorts': 4}Process information > > > proc.self< Process 3068: python > > > > proc.self.parent< Process 17423: bash > > > > proc.self.uptimedatetime.timedelta(0, 346, 380262) > > > proc.processes< Processes: > > > > len(proc.processes)110 > > > proc.processes.cmdline('(vim|ssh)')< Processes: > > > > proc.processes.uid(1000)< Processes: > > > > proc.processes.user('pmuller').cmdline('python')< Process 3093: python >Product's homepage


procfs Related Software