Python API for obtaining QNAP NAS system stats
Project description
Library from obtaining system information from QNAP NAS devices.
Installation
This library requires xmltodict, so make sure you have that installed:
pip3 install xmltodict>=0.10.0
Then install this Python module:
pip3 install qnapstats
Usage Example
from from qnapstats import QNAPStats
from pprint import pprint
qnap = QNAPStats('192.168.1.3', 8080, 'admin', 'correcthorsebatterystaple')
pprint(qnap.get_system_stats())
pprint(qnap.get_system_health())
pprint(qnap.get_smart_disk_health())
pprint(qnap.get_volumes())
pprint(qnap.get_bandwidth())
Device Support
This library has been tested against the latest QTS 4.2.2 firmware on a QNAP TS-451. Other devices using this firmware should work fine. If you encounter any compatibility issues, please let us know (or better yet, contribute a patch!)
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.
Source Distribution
qnapstats-0.2.0.tar.gz
(5.4 kB
view hashes)