procfs3

Python API for the Linux /proc virtual filesystem
Download

procfs3 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Duncan Davis
  • Publisher web site:
  • https://github.com/galini/

procfs3 Tags


procfs3 Description

procfs3 is a Python version of procfs. It was converted using 2to3 with some manual fixes and some tests thrown in. To run the tests, run:python3 tests/doctests.pyEasy 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.bytes 117997558 > > > proc.meminfo.MemFree 57044 > > > 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.uptime datetime.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


procfs3 Related Software