Skip to main content

smartscan

CI PyPI - Version Docs

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

Default tables show only fields that the drive actually reports and that are relevant to its health. Use --verbose to include diagnostic counters and unavailable fields as well.

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.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smartscan 0.6.1
File Size Uploaded Provenance
smartscan-0.6.1.tar.gz 148.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for smartscan 0.6.1
File Interpreter ABI Platform
smartscan-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 191.1 kB

Release files / smartscan-0.6.1.tar.gz

Download URL smartscan-0.6.1.tar.gz
Size 148.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a5f21de303cfc3032e3d47270f7dd2873e6e700f73d657b7ab9993360ef1dcd0
BLAKE2b-256 checksum
How to use checksums
d0373bbb7a27c916a1bf47a2c5f901a8584c328fa111d04b87eae7750c7e2ee7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 25, 2026.

Transparency log

Release files / smartscan-0.6.1-py3-none-any.whl

Download URL smartscan-0.6.1-py3-none-any.whl
Size 42.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c32c405fa1095431f7af2cea05faf29c39ba814c4d1b2c154a40495541f55aa4
BLAKE2b-256 checksum
How to use checksums
8e6796e7ea9b77dd94727184014f147bd13144148e9fe82de357adf2d8f5b309
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 25, 2026.

Transparency log

Security for smartscan 0.6.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for smartscan-0.6.1.tar.gz

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 Oct 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page