GPUtil is a Python module for getting the GPU status from NVIDA GPUs using nvidia-smi
. GPUtil locates all GPUs on the computer, determines their availablity and returns a ordered list of available GPUs. Availablity is based upon the current memory consumption and load of each GPU. The module is written with GPU selection for Deep Learning in mind, but it is not task/library specific and it can be applied to any task, where it may be useful to identify available GPUs.
nvidia-smi
aside, all of its dependencies are in the basic Python install.
The primary goal of this module is to be able to inspect the internals of a mounted, online, filesystem for educational purposes.
A second goal is to provide a nicer way for automating administration tasks and writing monitoring scripts by being able to just programmatically access the needed information, instead of having to spend most of the time on parsing human readable output from other btrfs tools.
The python module acts as a wrapper around the low level kernel calls and btrfs data structures, presenting them as python objects with interesting attributes and references to other objects.
Python module for native access to the systemd facilities. Functionality is separated into different sub-modules: journal, daemons and sockets, machine and boot identifiers, and login. Appears packaged for all of the big distros already.
About as official as it gets. Documentation: https://www.freedesktop.org/software/systemd/python-systemd/
Pip: systemd-python