Solid-state drive (ssd) checker
Project description
Table of contents
Description
Tiny little Solid-State Drive checker for Python.
Working on Windows, macOS and Linux.
Installation
Type in your command shell with *administrator/root* privileges:
pip install ssd_checker
In Unix-based systems, this is generally achieved by superseding the command sudo.
sudo pip install ssd_checker
If the above commands fail, consider installing it with the option –user:
pip install --user ssd_checker
If in your system missing the command pip, but you’re sure you have installed the Python Interpreter and the package setuptools (>=20.8.1), you can try to install SSD Checker from the sources, in this way:
Usage
Import in your script the module sdd_checker and call its function is_ssd.
from ssd_checker 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 False.
Note: Ramdisks are always recognized as SSD under Windows.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.