procfs
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.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: [<Process 1: init>, <Process 2: kthreadd>, <Process 3: migration/0>, <Process 4: ksoftirqd/0>, <Process 5: watchdog/0>, <Process 6: migration/1>, <Process 7: ksoftirqd/1>, <Process 8: watchdog/1>, <Process 9: events/0>, <Process 10: events/1>, ...]>
>>> len(proc.processes)
110
>>> proc.processes.cmdline('(vim|ssh)')
<Processes: [<Process 2956: vim>, <Process 3044: vim>, <Process 3136: vim>, <Process 10422: sshd>, <Process 10440: sshd>, <Process 10504: sshd>]>
>>> proc.processes.uid(1000)
<Processes: [<Process 1120: bash>, <Process 2593: bash>, <Process 2956: vim>, <Process 3044: vim>, <Process 3093: python>, <Process 10504: sshd>, <Process 10505: bash>, <Process 10875: screen>, <Process 10876: screen>, <Process 12908: bash>, ...]>
>>> proc.processes.user('pmuller').cmdline('python')[0]
<Process 3093: python>
Links
Metadata
Release files for procfs 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| procfs-0.5.0.tar.gz | 16.5 kB | Without provenance | Details for procfs-0.5.0.tar.gz |
Release files / procfs-0.5.0.tar.gz
| Download URL | procfs-0.5.0.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66ed159902551727dc49d035653c8f113eb991ee1eda3e10bd343cc0f3e70fcc
|
|
BLAKE2b-256 checksum How to use checksums |
a876e2025d589fb3c2bca15789bab090bc4aaaf7364ae63c74f0d569b426904a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for procfs 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.