smartscan
A CLI tool that runs smartctl on all disks, extracts key SMART health metrics, and stores historical results in SQLite for tracking changes over time.
Quick start
Install smartmontools to provide the smartctl command, then install smartscan:
uv tool install smartscan
Collect SMART data from all disks (requires root):
sudo smartscan collect
sudo smartscan collect --no-save "WDC"
sudo smartscan collect --verbose
sudo smartscan --json collect
Query historical records, filter by name, or get JSON output:
smartscan query --since 2026-01-01
smartscan query --last-days 7 --verbose
Map disks to their /dev/disk/ identifiers (no root needed):
smartscan lsblk
smartscan lsblk --source by-id "Samsung"
smartscan --exclude '^/dev/(loop|zd)\d+' lsblk
Read the full documentation for shell completion, configuration reference, and advanced usage.
Metadata
Release files for smartscan 0.4.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 | |
|---|---|---|---|
| smartscan-0.4.0.tar.gz | 107.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smartscan-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 145.1 kB
Release files / smartscan-0.4.0.tar.gz
| Download URL | smartscan-0.4.0.tar.gz |
|---|---|
| Size | 107.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39fdc8ad4211280a290d8a3a58934e748ea2996aea4c73f8ea4120da6634345a
|
|
BLAKE2b-256 checksum How to use checksums |
8515e82c240ca3240fde886be709447361c0879a888bf4ddfeb6a85cfa55a0f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 26, 2026.
Transparency logRelease files / smartscan-0.4.0-py3-none-any.whl
| Download URL | smartscan-0.4.0-py3-none-any.whl |
|---|---|
| Size | 37.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39181317d247e53491c6f1526b0f58256ee7afb9682399c97a2fdccfea14f137
|
|
BLAKE2b-256 checksum How to use checksums |
ca418be03de877231f7954f1b34f6225e768bacd5074d450dbddabb0f5a429b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 26, 2026.
Transparency log