Tiny little Solid-State Drive checker for Python.
Working on Windows, macOS and Linux.
Table of contents
Type in your command shell with administrator/root privileges:
pip install ssd
In Unix-based systems, this is generally achieved by superseding
sudo pip install ssd
If the above commands fail, consider installing it with the option
pip install --user ssd
If the command
pip is not found in your system, but you have the
Python Interpreter and the package
(>=20.8.1) installed, you can try to install it from the sources, in this way:
- Get the latest tarball of the source code in format ZIP or TAR.
- Extract the downloaded archive.
- From the extracted path, launch the command
python setup.py install.
Import in your script the module
sdd and call its function
from ssd import is_ssd is_ssd('/path/to/file-or-dir-or-dev')
Return value will be
True if the drive, where the given path is located, was
recognized as SSD, otherwise
Note: Ramdisks are always recognized as SSD under Windows.
That's All Folks!