Psutil-extra

Latest version: v0.2.0

Safety actively analyzes 621744 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.0

Changelog:

- Implement `proc_getgroups()` on OpenBSD
- Add `proc_getpgid()` and `proc_getsid()` helpers (can get process group ID/session ID even if `os.getpgid()`/`os.getsid()` raise permission errors)
- Handle `psutil.PROCFS_PATH` not being set (gracefully falls back on `/proc`)
- Add `oneshot_proc()` caching context manager to improve performance in some cases
- Add `proc_as_dict()` helper
- Add `proc_get_sigmasks()` function (on some platforms)
- FreeBSD: Handle operations on PID 0 properly

0.1.0

Initial release.

Current OS support for various functions

- Linux (tested in CI): `proc_get_umask()`, `proc_getgroups()`, `proc_rlimit()`, `proc_getrlimit()`
- FreeBSD (tested in CI): `proc_get_umask()`, `proc_getgroups()`, `proc_rlimit()`, `proc_getrlimit()`
- macOS (tested in CI): `proc_getgroups()`
- NetBSD (not tested in CI): `proc_getgroups()`, `proc_rlimit()`, `proc_getrlimit()`
- DragonflyBSD (not tested in CI): `proc_getgroups()`, `proc_getrlimit()`
- Solaris (not tested in CI): `proc_getgroups()`

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.