Skip to main content

A pure-python S.M.A.R.T library.

Project description

SMARTie logo

SMARTie

This is a pure-python, 0-dependency library for getting basic disk information such as model, serial number, disk health, temperature, and SMART data. It supports both SCSI/ATA and NVMe devices.

Documentation

Read the getting started guide and API documentation at https://tkte.ch/smartie/.

Installation

SMARTie currently requires Python 3.8 or greater.

pip install smartie

If you want the command line tools, you'll also want to do:

pip install smartie[cli]

FAQ

This library isn't returning any of my drives?

The APIs this library uses to communicate with devices typically require root (on Linux) or administrator (on Windows) access to work.

My drive doesn't work with this library?

Support for drives that don't follow modern standards is still a work in progress. Open an issue.

Library Y does X, can I copy that code?

It depends. This library is available under the MIT license and is a fun side project. I want anyone to be able to use it. Many existing projects are GPL or LGPL, so you need to avoid them when contributing to this project. Instead:

  • Use the specifications or vendor documentation whenever possible.
  • Use the SG_IO documentation by Danny (https://sg.danny.cz/sg/).
  • Use the conversations in mailing lists and bug trackers, while avoiding the code.

Does this library support RAID controllers?

Untested. It hasn't been thoroughly tested with RAID controllers, as the target audience for the main program that uses this library is consumer desktops. Patches happily accepted if you have one to test with!

ATA, ATAPI, SCSI, NVMe, what?

Acronyms, acronyms everywhere! What does any of this mean?

  • ATA: Advanced Technology Attachment.
  • ATAPI: AT Attachment Packet Interface.
  • SCSI: Small Computer System Interface.
  • NVMe: Non-Volatile Memory Express. The standard for connecting "modern" solid-state drives to a computer, typically through PCI-e.
  • SATA: Serial ATA.
  • PATA: Parallel ATA.
  • S.M.A.R.T: Self-Monitoring, Analysis, and Reporting Technology. A standard for hard drives and solid-state drives to report their health and status.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smartie-4.0.0.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

smartie-4.0.0-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file smartie-4.0.0.tar.gz.

File metadata

  • Download URL: smartie-4.0.0.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.8.18 Linux/6.5.0-1021-azure

File hashes

Hashes for smartie-4.0.0.tar.gz
Algorithm Hash digest
SHA256 1346adb61e8448ce59b81c7bacef9a5ce5a032936dd880a916d6e7f676eb23e2
MD5 37c49e9a281838ac599d1ec6dc7e6f87
BLAKE2b-256 2bad955c0cc61463bc0e63b76ebc3a6969cedfbac8e1a7c2d97e10ee1bf3dee8

See more details on using hashes here.

File details

Details for the file smartie-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: smartie-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.8.18 Linux/6.5.0-1021-azure

File hashes

Hashes for smartie-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57d907c1fa5223e84b9e097effa14460949b2f431298ab5cf7af21e76eec91a9
MD5 1c017da54ab63a910253eb21d5946a22
BLAKE2b-256 760211b10c974c852a04401aa0d491f4767ec6aac568891d98332de068cb4844

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page